]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/g++.dg/cpp0x/constexpr-static2.C
call.c (null_ptr_cst_p): Use maybe_constant_value.
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-static2.C
1 // { dg-options -std=c++0x }
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 };