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
simulate-thread tests: Silence gdb debuginfod warning
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
static_assert16.C
blob
5b40b774f7b7057b9fad06e456699e6c95593f06
1
// PR c++/82239
2
// { dg-do compile { target c++11 } }
3
4
template<typename T>
5
struct C {
6
static constexpr int x = 5;
7
void f()
8
{
9
static_assert(0 < x, "");
10
static_assert(0 < (x), "");
11
static_assert(true || (0 < x), "");
12
static_assert(true || (0 < (x)), "");
13
}
14
};