Sign in
chromium
/
chromiumos
/
third_party
/
gcc
/
b42cc22ad4b3cc4c4cd697052b8f1dd85df96d0a
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
inh-ctor6.C
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
);