New test from GNATS #3073
authorGabriel Dos Reis <gdr@gcc.gnu.org>
Sat, 11 Aug 2001 19:44:31 +0000 (19:44 +0000)
committerGabriel Dos Reis <gdr@gcc.gnu.org>
Sat, 11 Aug 2001 19:44:31 +0000 (19:44 +0000)
From-SVN: r44802

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

diff --git a/gcc/testsuite/g++.dg/template/member.C b/gcc/testsuite/g++.dg/template/member.C
new file mode 100644 (file)
index 0000000..f6f264e
--- /dev/null
@@ -0,0 +1,28 @@
+// { dg-do compile }\r
+\r
+\r
+class BIXSet{\r
+int z[4];\r
+public:\r
+void f(BIXSet &other){\r
+z[0]=other.z[0];\r
+}\r
+\r
+};\r
+\r
+class TestCase2{\r
+public:\r
+BIXSet a,b;\r
+\r
+public:\r
+void run(void){\r
+BIXSet x,y;\r
+process(0,x,y);\r
+}\r
+\r
+protected:\r
+template<class BS> void process(const int d,BS &en,BS &lb){\r
+a.f(en);b.f(lb);\r
+}\r
+\r
+};\r