diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-12-13 06:39:58 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-12-13 06:39:58 +0000 |
commit | c1c5f27c64dfc3332d53ad30e44d626e4f9afac3 (patch) | |
tree | a548a6c666834014f8099862a13a2e6838ab1d94 /test/SemaCXX/enum-bitfield.cpp | |
parent | 9081c049eca577f6253a4782bc047aeae38566c0 (diff) |
Add checks and diagnostics for many of the cases which C++11 considers to not
be constant expressions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146479 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/enum-bitfield.cpp')
-rw-r--r-- | test/SemaCXX/enum-bitfield.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/SemaCXX/enum-bitfield.cpp b/test/SemaCXX/enum-bitfield.cpp index 1a657408f8..8cfc21f965 100644 --- a/test/SemaCXX/enum-bitfield.cpp +++ b/test/SemaCXX/enum-bitfield.cpp @@ -2,7 +2,7 @@ enum E {}; -struct Z {}; +struct Z {}; // expected-note {{here}} typedef int Integer; struct X { @@ -14,5 +14,5 @@ struct X { struct Y { enum E : int(2); - enum E : Z(); // expected-error{{not an integer constant}} + enum E : Z(); // expected-error{{not an integer constant}} expected-note {{non-constexpr constructor 'Z'}} }; |