aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Dos Reis <gdr@gcc.gnu.org>2001-08-13 13:59:49 +0000
committerGabriel Dos Reis <gdr@gcc.gnu.org>2001-08-13 13:59:49 +0000
commit160fb9bc16f709eaa4a1c3b28d151118d44097d1 (patch)
treea306a6493942fd82016ac99e3f03ce43dbb6f742
parentfe45ab59cade9d174745e66a9daaae828645cf6b (diff)
downloadgcc-160fb9bc16f709eaa4a1c3b28d151118d44097d1.zip
gcc-160fb9bc16f709eaa4a1c3b28d151118d44097d1.tar.gz
gcc-160fb9bc16f709eaa4a1c3b28d151118d44097d1.tar.bz2
New testcase from PR #3816
From-SVN: r44850
-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 *-*-* } }
+}