☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-static11.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/constexpr-static11.C
code
plain
raw
1
// PR c++/54532
2
// { dg-do compile { target c++11 } }
3
4
#define SA(X) static_assert(X,#X)
5
6
struct A {
7
int i;
8
constexpr static int A::*p = &A::i;
9
};
10
11
constexpr A a = { 42 };
12
SA(a.*A::p == 42);
13
14
constexpr int A::* A::p;