Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/constexpr-59686.C

raw
1 // PR c++/59686
2 // { dg-do compile { target c++11 } }
3
4 int main()
5 {
6 static const int x = 5;
7 const int * const y = &x;
8 static_assert(y, ""); // { dg-error "non-constant|value" }
9 }