Sign in
chromium
/
chromiumos
/
third_party
/
gcc
/
refs/heads/factory-ryu-6486.B
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
static_assert10.C
blob: 216f2595b6bd9a29c72f75dfb2c4a44326346509 [
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" }
}