summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/explicit.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/explicit.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.jason/explicit.C15
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/explicit.C b/gcc/testsuite/g++.old-deja/g++.jason/explicit.C
new file mode 100644
index 000000000..e227792a0
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.jason/explicit.C
@@ -0,0 +1,15 @@
+// { dg-do assemble }
+// Testcase for explicit instantiation of templates.
+
+template <class T>
+class A {
+ T t;
+public:
+ void f () { }
+};
+
+template class A<int>;
+
+template <class T> T min (T a, T b) { return (a < b ? a : b); }
+
+template int min (int, int);