summaryrefslogtreecommitdiffstats
path: root/clang/test/CXX/class/class.union/class.union.anon/p1.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CXX/class/class.union/class.union.anon/p1.cpp')
-rw-r--r--clang/test/CXX/class/class.union/class.union.anon/p1.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/test/CXX/class/class.union/class.union.anon/p1.cpp b/clang/test/CXX/class/class.union/class.union.anon/p1.cpp
index 7fef4c5d172..31c9313cf53 100644
--- a/clang/test/CXX/class/class.union/class.union.anon/p1.cpp
+++ b/clang/test/CXX/class/class.union/class.union.anon/p1.cpp
@@ -13,14 +13,12 @@ struct X {
int d; // expected-error {{member of anonymous union redeclares}}
int e; // expected-note {{previous}}
int f; // expected-note {{previous}}
- int g;
+ int g; // expected-note {{previous}}
int h; // expected-note {{previous}}
};
int e; // expected-error {{duplicate member}}
void f(); // expected-error {{redefinition}}
- // FIXME: This is ill-formed, even though one name is a tag and the other is
- // an anonymous union member. Reject this.
- struct g;
+ struct g; // expected-error {{redefinition}}
typedef int h; // expected-error {{redefinition}}
};
OpenPOWER on IntegriCloud