blob: 5ac88d6b7db5c06932835fd74d247b6e1a5e13ff [file] [log] [blame]
// { dg-options "-std=c++11" }
extern "C" int printf (const char *, ...);
template< class T >
struct D : T {
using T::T;
// declares all constructors from class T
~D() { printf ("Destroying wrapper\n"); }
};
struct A {
A(int);
};
D<A> d(42);