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

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

diff --git a/gcc/testsuite/g++.dg/template/inherit.C b/gcc/testsuite/g++.dg/template/inherit.C
new file mode 100644 (file)
index 0000000..43af3cf
--- /dev/null
@@ -0,0 +1,13 @@
+// Contributed by Gabriel Dos Reis <gdr@codesourcery.com>
+// { dg-do compile }
+
+template<typename T>
+struct X { void f() { } };
+
+struct Z : X<int> { };
+
+int main()
+{
+  Z z;
+  z.X::f();
+}