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