repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-59937-2.C
blob
e67d9467a46eeb3e1720eb8bbaf7e94c73fa5bc3
1
// PR c++/59937
2
// { dg-do compile { target c++11 } }
3
4
template<typename T> constexpr bool truth(const T&) { return true; }
5
6
template<typename T>
7
void test()
8
{
9
int i[1];
10
constexpr bool untrue = !truth(i);
11
static_assert(!untrue, "");
12
}