summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/codegen1.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/codegen1.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/codegen1.C24
1 files changed, 24 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/codegen1.C b/gcc/testsuite/g++.old-deja/g++.pt/codegen1.C
new file mode 100644
index 000000000..c07083a0a
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.pt/codegen1.C
@@ -0,0 +1,24 @@
+// { dg-do assemble }
+// Origin: Mark Mitchell <mark@codesourcery.com>
+
+int i;
+
+struct S
+{
+ ~S ()
+ {
+ }
+};
+
+template <class T>
+void f (T, S)
+{
+ i = 0;
+}
+
+int main ()
+{
+ i = 1;
+ f (3, S ());
+ return i;
+}