summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/repo4.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/repo4.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/repo4.C19
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/repo4.C b/gcc/testsuite/g++.old-deja/g++.pt/repo4.C
new file mode 100644
index 000000000..84575cd94
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.pt/repo4.C
@@ -0,0 +1,19 @@
+// { dg-do link }
+// { dg-options "-frepo" }
+// { dg-require-host-local "" }
+// { dg-skip-if "dkms are not final links" { vxworks_kernel } }
+
+template <class T>
+struct S {
+ ~S ();
+};
+
+template <class T>
+S<T>::~S () {}
+
+int main ()
+{
+ S<int> s;
+}
+
+// { dg-final { cleanup-repo-files } }