summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/anon-struct.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/other/anon-struct.C')
-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 000000000..a23e8094e
--- /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;
+}