diff options
Diffstat (limited to 'gcc-4.6/gcc/testsuite/g++.dg/cpp0x/constexpr-static8.C')
-rw-r--r-- | gcc-4.6/gcc/testsuite/g++.dg/cpp0x/constexpr-static8.C | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc-4.6/gcc/testsuite/g++.dg/cpp0x/constexpr-static8.C b/gcc-4.6/gcc/testsuite/g++.dg/cpp0x/constexpr-static8.C new file mode 100644 index 0000000..35c3f25 --- /dev/null +++ b/gcc-4.6/gcc/testsuite/g++.dg/cpp0x/constexpr-static8.C @@ -0,0 +1,7 @@ +// PR c++/50258 +// { dg-options "-std=c++0x -pedantic" } + +struct Foo { + static const double d = 3.14; // { dg-warning "constexpr" } +}; +const double Foo::d; |