aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGabriel Dos Reis <gdr@gcc.gnu.org>2001-08-12 08:26:01 +0000
committerGabriel Dos Reis <gdr@gcc.gnu.org>2001-08-12 08:26:01 +0000
commit1910ae1527950cba932931fc392589e27351dd7d (patch)
tree8ae096932a1355f0007fb06e2411cc4f0587410d /gcc
parente7e0c3d41205edf1e5a0595bfc8d53f77a2df222 (diff)
downloadgcc-1910ae1527950cba932931fc392589e27351dd7d.zip
gcc-1910ae1527950cba932931fc392589e27351dd7d.tar.gz
gcc-1910ae1527950cba932931fc392589e27351dd7d.tar.bz2
Testcase from PR #3381
From-SVN: r44822
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/g++.dg/template/explicit-instantiation.C13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/template/explicit-instantiation.C b/gcc/testsuite/g++.dg/template/explicit-instantiation.C
new file mode 100644
index 0000000..2830625
--- /dev/null
+++ b/gcc/testsuite/g++.dg/template/explicit-instantiation.C
@@ -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>;
+
+