☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-nsdmi2.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/constexpr-nsdmi2.C
code
plain
raw
1
// PR c++/107079
2
// { dg-do compile { target c++11 } }
3
4
struct X {
5
const X* x = this;
6
};
7
constexpr const X& x = X{};
8
// TODO: The assert should pass once we implement DR2126 (c++/101588).
9
//static_assert(x.x == &x);