summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/expr6.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/expr6.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/expr6.C7
1 files changed, 7 insertions, 0 deletions
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
index 000000000..55da97d53
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.pt/expr6.C
@@ -0,0 +1,7 @@
+// { dg-do assemble }
+
+// Based on a bug report by tveldhui <tveldhui@extreme.indiana.edu>
+
+template <int X> class foo {};
+
+foo< true ? 1 : 0 > bar;