Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-59937-2.C
blob: e67d9467a46eeb3e1720eb8bbaf7e94c73fa5bc3 [
file
] [
log
] [
blame
]
// PR c++/59937
// { dg-do compile { target c++11 } }
template
<
typename
T
>
constexpr
bool
truth
(
const
T
&)
{
return
true
;
}
template
<
typename
T
>
void
test
()
{
int
i
[
1
];
constexpr
bool
untrue
=
!
truth
(
i
);
static_assert
(!
untrue
,
""
);
}