Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/static_assert16.C

raw
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 };