summaryrefslogtreecommitdiffstats
path: root/test/CXX/class/class.union/class.union.anon/p4.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/CXX/class/class.union/class.union.anon/p4.cpp')
-rw-r--r--test/CXX/class/class.union/class.union.anon/p4.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CXX/class/class.union/class.union.anon/p4.cpp b/test/CXX/class/class.union/class.union.anon/p4.cpp
index cc54ba4066..a12ec38503 100644
--- a/test/CXX/class/class.union/class.union.anon/p4.cpp
+++ b/test/CXX/class/class.union/class.union.anon/p4.cpp
@@ -2,7 +2,7 @@
union U {
int x = 0; // expected-note {{previous initialization is here}}
- union {};
+ union {}; // expected-warning {{does not declare anything}}
union {
int z;
int y = 1; // expected-error {{initializing multiple members of union}}