Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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
);