Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
inh-ctor12.C
blob: cc23d4b19e9d4147ee5efef916f6c35679c64510 [
file
] [
log
] [
blame
]
// { dg-do run { target c++11 } }
struct
A
{
int
i
;
template
<
class
T
>
A
(
T t
)
noexcept
:
i
(
t
)
{}
};
struct
C
{
C
()
{
throw
42
;
}
};
struct
B
:
A
,
C
{
using
A
::
A
;
};
int
main
()
{
try
{
B b
(
24
);
}
catch
(
int
)
{
return
0
;
}
__builtin_abort
();
}