Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
static_assert10.C
blob: 5ff085487cc552aa86745624f42f07482bbb0f0d [
file
] [
log
] [
blame
]
// PR c++/60254
// { dg-do compile { target c++11 } }
template
<
typename
T
>
bool
foo
(
T
)
{
int
i
;
static_assert
(
foo
(
i
),
"Error"
);
// { dg-error "non-constant condition|not usable|non-.constexpr." }
return
true
;
}