summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/t40.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/t40.C')
-rwxr-xr-xgcc/testsuite/g++.old-deja/g++.pt/t40.C11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/t40.C b/gcc/testsuite/g++.old-deja/g++.pt/t40.C
new file mode 100755
index 0000000..34768a9
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.pt/t40.C
@@ -0,0 +1,11 @@
+// Build don't link:
+
+struct A {
+ struct B {
+ B (int);
+ };
+ static int foop (B);
+ static int splat () {
+ return foop (B (1));
+ }
+};