aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/temps1.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.law/temps1.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.law/temps1.C18
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.law/temps1.C b/gcc/testsuite/g++.old-deja/g++.law/temps1.C
new file mode 100644
index 00000000000..aa3e8e83bbe
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.law/temps1.C
@@ -0,0 +1,18 @@
+// Build don't link:
+// GROUPS passed temps
+// temps file
+// Date: Mon, 07 Sep 1992 13:12:28 EDT
+// From: richard@ttt.kth.se
+struct foo
+{
+ char *s;
+ foo(char *x) { s=x; }
+};
+
+struct cookie
+{
+ foo * v;
+ cookie ( foo * x) { v=x; }
+};
+
+cookie cat(&foo("apabepa"));// ERROR - .*