Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
noexcept-type15.C
blob: 8543859b3f54a3471353732cd88e8feed7c3dfe5 [
file
] [
log
] [
blame
]
// PR c++/80384
// { dg-do compile { target c++17 } }
template
<class>
struct
foo
;
template
<
bool
B
>
struct
foo
<
int
()
noexcept
(
B
)>
{
static
const
bool
value
=
B
;
};
static_assert
(!
foo
<
int
()>::
value
);
static_assert
(
foo
<
int
()
noexcept
>::
value
);