PR c++/85553
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-static2.C
blob70a254c5dd9dd425e1f0dab6f27ec7270a8c2925
1 // { dg-do compile { target c++11 } }
2 struct IsLiteral {};
4 struct ShouldBeLiteral {
5   constexpr ShouldBeLiteral(int){}
6 };
8 struct StaticDataMember {
9   static constexpr IsLiteral one = IsLiteral(); // #1
10   static constexpr ShouldBeLiteral two= ShouldBeLiteral(-1); // #2