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

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

diff --git a/gcc/testsuite/g++.dg/template/partial-specialization.C b/gcc/testsuite/g++.dg/template/partial-specialization.C
new file mode 100644 (file)
index 0000000..feaeb2f
--- /dev/null
@@ -0,0 +1,22 @@
+// Contributed by Gabriel Dos Reis <gdr@codesourcery.com>
+// Origin: philippeb@videotron.ca
+// { dg-do compile }
+
+struct B
+{
+       int i;
+};
+
+template <class _T, class _M, _M _T::* _V>
+       struct A;
+
+template <class _T, int _T::* _V>
+       struct A<_T, int, _V>
+       {
+       };
+
+int main()
+{
+       A<B, int, & B::i> a;
+}
+