diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2019-04-24 00:08:02 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2019-04-24 00:08:02 +0000 |
commit | 3ac3e9ce047450d4fa9489055ca243bcfc035bd0 (patch) | |
tree | 365164f11caa5d079bc3e0757792a1df55286cc0 /clang/test/SemaCXX/anonymous-union.cpp | |
parent | 7fee2b89fd6e5101bc590e0741f4d7a82b7715e1 (diff) | |
download | bcm5719-llvm-3ac3e9ce047450d4fa9489055ca243bcfc035bd0.tar.gz bcm5719-llvm-3ac3e9ce047450d4fa9489055ca243bcfc035bd0.zip |
Add missing diagnostic for anonymous struct/union definitions that don't
introduce any names.
llvm-svn: 359051
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 5538ea47033..9a884399948 100644 --- a/clang/test/SemaCXX/anonymous-union.cpp +++ b/clang/test/SemaCXX/anonymous-union.cpp @@ -81,7 +81,7 @@ union { // expected-error{{anonymous unions at namespace or global scope must be }; extern "C++" { -union { }; // expected-error{{anonymous unions at namespace or global scope must be declared 'static'}} +union { int extern_cxx; }; // expected-error{{anonymous unions at namespace or global scope must be declared 'static'}} } static union { |