☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
static_assert10.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/static_assert10.C
code
plain
raw
1
// PR c++/60254
2
// { dg-do compile { target c++11 } }
3
4
template<typename T> bool foo(T)
5
{
6
int i;
7
static_assert(foo(i), "Error"); // { dg-error "non-constant condition|not usable|non-.constexpr." }
8
return true;
9
}