aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/testsuite/g++.dg/other/anon-struct.C9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/other/anon-struct.C b/gcc/testsuite/g++.dg/other/anon-struct.C
new file mode 100644
index 0000000..d045910
--- /dev/null
+++ b/gcc/testsuite/g++.dg/other/anon-struct.C
@@ -0,0 +1,9 @@
+// Contributed by Gabriel Dos Reis <gdr@codesourcery.com>
+// { dg-do compile }
+
+namespace N { }
+
+namespace M
+{
+ typedef struct { } N; // { dg-bogus ".*" "" { xfail *-*-* } }
+}