aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/enum-bitfield.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2011-12-13 06:39:58 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2011-12-13 06:39:58 +0000
commitc1c5f27c64dfc3332d53ad30e44d626e4f9afac3 (patch)
treea548a6c666834014f8099862a13a2e6838ab1d94 /test/SemaCXX/enum-bitfield.cpp
parent9081c049eca577f6253a4782bc047aeae38566c0 (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.cpp4
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'}}
};