]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/g++.dg/cpp0x/constexpr-static2.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-static2.C
1 // { dg-do compile { target c++11 } }
2 struct IsLiteral {};
3
4 struct ShouldBeLiteral {
5 constexpr ShouldBeLiteral(int){}
6 };
7
8 struct StaticDataMember {
9 static constexpr IsLiteral one = IsLiteral(); // #1
10 static constexpr ShouldBeLiteral two= ShouldBeLiteral(-1); // #2
11 };
This page took 0.036659 seconds and 5 git commands to generate.