aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.jason/scoping7.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/g++.old-deja/g++.jason/scoping7.C')
-rw-r--r--gcc-4.9/gcc/testsuite/g++.old-deja/g++.jason/scoping7.C6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/g++.old-deja/g++.jason/scoping7.C b/gcc-4.9/gcc/testsuite/g++.old-deja/g++.jason/scoping7.C
new file mode 100644
index 000000000..245c8fa07
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/g++.old-deja/g++.jason/scoping7.C
@@ -0,0 +1,6 @@
+// { dg-do assemble }
+// Bug: g++ doesn't flag name collisions between types and non-types as
+// errors. It shouldn't for class names, but it should for typedefs.
+
+int bar; // { dg-message "" }
+typedef int bar; // { dg-error "" }