Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
inh-ctor6.C
blob: 98ac1885a9fe42096db1ba8bdfd1379efe9d3078 [
file
] [
log
] [
blame
]
// { dg-do compile { target 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
);