diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/cpp0x/constexpr-nonstatic.C')
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/constexpr-nonstatic.C | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp0x/constexpr-nonstatic.C b/gcc/testsuite/g++.dg/cpp0x/constexpr-nonstatic.C new file mode 100644 index 000000000..3951fbdb1 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/constexpr-nonstatic.C @@ -0,0 +1,6 @@ +// { dg-options -std=c++0x } + +struct A +{ + constexpr int i; // { dg-error "" } +}; |