]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Testcase from PR #3381
authorGabriel Dos Reis <gdr@gcc.gnu.org>
Sun, 12 Aug 2001 08:26:01 +0000 (08:26 +0000)
committerGabriel Dos Reis <gdr@gcc.gnu.org>
Sun, 12 Aug 2001 08:26:01 +0000 (08:26 +0000)
From-SVN: r44822

gcc/testsuite/g++.dg/template/explicit-instantiation.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/template/explicit-instantiation.C b/gcc/testsuite/g++.dg/template/explicit-instantiation.C
new file mode 100644 (file)
index 0000000..2830625
--- /dev/null
@@ -0,0 +1,13 @@
+// Contributed by Gabriel Dos Reis <gdr@codesourcery.com>
+// Origin: Jens.Maurer@gmx.net
+// { dg-do compile }
+
+namespace N
+{
+  template<class T>
+  class A { };
+}
+
+template class ::N::A<int>;
+
+