Debian Codegraph @

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

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);