diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/g++.dg/template/explicit-instantiation.C | 13 |
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>; + + |