c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / inh-ctor6.C
blob98ac1885a9fe42096db1ba8bdfd1379efe9d3078
1 // { dg-do compile { target c++11 } }
3 extern "C" int printf (const char *, ...);
4 template< class T >
5 struct D : T {
6   using T::T;
7   // declares all constructors from class T
8   ~D() { printf ("Destroying wrapper\n"); }
9 };
11 struct A {
12   A(int);
15 D<A> d(42);