diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-03-18 22:52:47 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-03-18 22:52:47 +0000 |
commit | b1402ae94eb7ca0f52b358aaf8eae13247114bf7 (patch) | |
tree | 14940f4e599b70f7381b2332c39c3aa13a990799 /clang/test/SemaCXX/anonymous-union.cpp | |
parent | ae0052f114cc43c9ddcf03e6d016f7de0b0edcc2 (diff) | |
download | bcm5719-llvm-b1402ae94eb7ca0f52b358aaf8eae13247114bf7.tar.gz bcm5719-llvm-b1402ae94eb7ca0f52b358aaf8eae13247114bf7.zip |
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
Diffstat (limited to 'clang/test/SemaCXX/anonymous-union.cpp')
-rw-r--r-- | clang/test/SemaCXX/anonymous-union.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 { }; // <rdar://problem/6481130> -typedef union { }; // expected-warning{{declaration does not declare anything}} +typedef union { }; // expected-warning{{typedef requires a name}} // <rdar://problem/7562438> typedef struct objc_module *Foo ; |