expr6.C: New test.
authorAlexandre Oliva <oliva@gcc.gnu.org>
Fri, 9 Oct 1998 09:48:27 +0000 (09:48 +0000)
committerAlexandre Oliva <oliva@gcc.gnu.org>
Fri, 9 Oct 1998 09:48:27 +0000 (09:48 +0000)
* g++.old-deja/g++.pt/expr6.C: New test.  operator?: breaks
matching of template brackets.
(forgot to cvs add it yesterday)

From-SVN: r22956

gcc/testsuite/g++.old-deja/g++.pt/expr6.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.old-deja/g++.pt/expr6.C b/gcc/testsuite/g++.old-deja/g++.pt/expr6.C
new file mode 100644 (file)
index 0000000..e1d38de
--- /dev/null
@@ -0,0 +1,9 @@
+// Build don't link:
+
+// Based on a bug report by tveldhui <tveldhui@extreme.indiana.edu>
+
+// excess errors test - XFAIL *-*-*
+
+template <int X> class foo {};
+
+foo< true ? 1 : 0 > bar;