Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
noexcept20.C
blob: ec4f3a153354eeec975de4c833e6c32ffc2d78d3 [
file
] [
log
] [
blame
]
// PR c++/56071
// { dg-do compile { target c++11 } }
class
B
{
template
<
typename
T
>
friend
struct
A
;
B
()
{}
};
template
<
typename
T
>
struct
A
{
A
()
noexcept
(
noexcept
(
B
()))
{
}
};
struct
C
{
C
()
{
static_assert
(
!
noexcept
(
A
<int>
()),
""
);
}
};