blob: 86040a31b1a1f15288e56b690ffacc80bec58da3 [file] [log] [blame]
// PR c++/54341
// { dg-do compile { target c++11 } }
template<typename T>
struct enable_shared_from_this
{
constexpr enable_shared_from_this(); // { dg-warning "used but never defined" }
private:
int mem;
};
class VTableClass {
public:
virtual void someVirtualMethod() { }
};
class SomeClass : public enable_shared_from_this< SomeClass >, public
VTableClass { };
SomeClass* createInstance()
{
return new SomeClass;
}