OSDN Git Service

Testcase from PR #3350
authorgdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 12 Aug 2001 08:08:42 +0000 (08:08 +0000)
committergdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 12 Aug 2001 08:08:42 +0000 (08:08 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44820 138bc75d-0d04-0410-961f-82ee72b054a4

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;
+}
+