summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/anonymous-union.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2019-04-24 00:08:02 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2019-04-24 00:08:02 +0000
commit3ac3e9ce047450d4fa9489055ca243bcfc035bd0 (patch)
tree365164f11caa5d079bc3e0757792a1df55286cc0 /clang/test/SemaCXX/anonymous-union.cpp
parent7fee2b89fd6e5101bc590e0741f4d7a82b7715e1 (diff)
downloadbcm5719-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.cpp2
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 {
OpenPOWER on IntegriCloud