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