Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
static_assert11.C
blob: 36bf458e25f7852db5ea1b3e1401912ec87804d1 [
file
] [
log
] [
blame
]
// PR c++/60254
// { dg-do compile { target c++11 } }
struct
A
{
template
<
typename
T
>
bool
foo
(
T
)
{
static_assert
(
foo
(
0
),
"Error"
);
// { dg-error "non-constant condition|constant expression" }
return
true
;
}
};