repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
/cp
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
static_assert10.C
blob
216f2595b6bd9a29c72f75dfb2c4a44326346509
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" }
8
}