diff options
Diffstat (limited to 'test/CXX/class/class.bit/p2.cpp')
-rw-r--r-- | test/CXX/class/class.bit/p2.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/test/CXX/class/class.bit/p2.cpp b/test/CXX/class/class.bit/p2.cpp deleted file mode 100644 index 8b2436a869ba..000000000000 --- a/test/CXX/class/class.bit/p2.cpp +++ /dev/null @@ -1,22 +0,0 @@ -// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s - -struct A { -private: - int : 0; -}; - -A a = { }; -A a2 = { 1 }; // expected-error{{excess elements in struct initializer}} - -struct B { - const int : 0; // expected-error{{anonymous bit-field cannot have qualifiers}} -}; - -B b; - -void testB() { - B b2(b); - B b3(static_cast<B&&>(b2)); - b = b; - b = static_cast<B&&>(b); -} |