aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.oliva/template3.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.oliva/template3.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.oliva/template3.C11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.oliva/template3.C b/gcc/testsuite/g++.old-deja/g++.oliva/template3.C
new file mode 100644
index 00000000000..5071f713fc6
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.oliva/template3.C
@@ -0,0 +1,11 @@
+// Build don't link:
+
+// Copyright (C) 1999 Free Software Foundation
+
+// by Alexandre Oliva <oliva@dcc.unicamp.br>
+// based on bug report by Ulf Larsson <ulf.larsson@mbow337.swipnet.se>
+
+// crash test - XFAIL *-*-*
+
+template <class T> class C {};
+class foo {} bar = bar.C();