summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Parser/cxx-using-directive.cpp2
-rw-r--r--clang/test/Sema/anonymous-struct-union.c7
2 files changed, 8 insertions, 1 deletions
diff --git a/clang/test/Parser/cxx-using-directive.cpp b/clang/test/Parser/cxx-using-directive.cpp
index b89436046be..bf89bb19211 100644
--- a/clang/test/Parser/cxx-using-directive.cpp
+++ b/clang/test/Parser/cxx-using-directive.cpp
@@ -13,7 +13,7 @@ namespace D {
class C {
- using namespace B ; // expected-error{{expected unqualified-id}}
+ using namespace B ; // expected-error{{expected member name or ';' after declaration specifiers}}
//FIXME: this needs better error message
};
diff --git a/clang/test/Sema/anonymous-struct-union.c b/clang/test/Sema/anonymous-struct-union.c
index d8a445c6491..9784236c8bf 100644
--- a/clang/test/Sema/anonymous-struct-union.c
+++ b/clang/test/Sema/anonymous-struct-union.c
@@ -88,4 +88,11 @@ struct s1 {
};
};
+// PR3680
struct {}; // expected-error{{declaration does not declare anything}}
+
+struct s2 {
+ union {
+ int a;
+ }
+}; // expected-error{{expected member name or ';' after declaration specifiers}}
OpenPOWER on IntegriCloud