// Test case, bug 755048 - Stop use of Glib::RefPtr with certain classes

#include <glibmm.h>

class WithRefPtr : public Glib::Object
{
};

class WithoutRefPtr : public Glib::Object
{
public:
  typedef int dont_allow_use_in_glib_refptr_;
};


int main()
{
  Glib::RefPtr<WithRefPtr> with(new WithRefPtr);
  // Shall not compile:
  Glib::RefPtr<WithoutRefPtr> without(new WithoutRefPtr);
  return 1;
}
