aboutsummaryrefslogtreecommitdiff
path: root/test/Parser/cxx0x-ambig.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Parser/cxx0x-ambig.cpp')
-rw-r--r--test/Parser/cxx0x-ambig.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Parser/cxx0x-ambig.cpp b/test/Parser/cxx0x-ambig.cpp
index ac9c75ea68..dac3c099fc 100644
--- a/test/Parser/cxx0x-ambig.cpp
+++ b/test/Parser/cxx0x-ambig.cpp
@@ -25,6 +25,9 @@ namespace final {
struct T final : S {}; // expected-error {{base 'S' is marked 'final'}}
struct T bar : S {}; // expected-error {{expected ';' after top level declarator}} expected-error {{expected unqualified-id}}
}
+ // _Alignas isn't allowed in the places where alignas is. We used to
+ // assert on this.
+ struct U final _Alignas(4) {}; // expected-error 3{{}} expected-note {{}}
}
// enum versus bitfield mess.