☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-59686.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/constexpr-59686.C
code
plain
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
}