summaryrefslogtreecommitdiff
path: root/test/CXX/class/class.bit/p2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/CXX/class/class.bit/p2.cpp')
-rw-r--r--test/CXX/class/class.bit/p2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CXX/class/class.bit/p2.cpp b/test/CXX/class/class.bit/p2.cpp
index 7962330d1612..8b2436a869ba 100644
--- a/test/CXX/class/class.bit/p2.cpp
+++ b/test/CXX/class/class.bit/p2.cpp
@@ -9,7 +9,7 @@ A a = { };
A a2 = { 1 }; // expected-error{{excess elements in struct initializer}}
struct B {
- const int : 0;
+ const int : 0; // expected-error{{anonymous bit-field cannot have qualifiers}}
};
B b;