From b1402ae94eb7ca0f52b358aaf8eae13247114bf7 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Mon, 18 Mar 2013 22:52:47 +0000 Subject: Add missing diagnostic for a nested-name-specifier on a free-standing type definition. Bump some related diagnostics from warning to extension in C++, since they're errors there. Add some missing checks for function specifiers on non-function declarations. llvm-svn: 177335 --- clang/test/SemaCXX/anonymous-union.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/test/SemaCXX/anonymous-union.cpp') diff --git a/clang/test/SemaCXX/anonymous-union.cpp b/clang/test/SemaCXX/anonymous-union.cpp index 93b5b0abbaf..9c2cf24a83f 100644 --- a/clang/test/SemaCXX/anonymous-union.cpp +++ b/clang/test/SemaCXX/anonymous-union.cpp @@ -110,7 +110,7 @@ struct BadMembers { }; // -typedef union { }; // expected-warning{{declaration does not declare anything}} +typedef union { }; // expected-warning{{typedef requires a name}} // typedef struct objc_module *Foo ; -- cgit v1.2.3