diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/template/inherit.C')
-rw-r--r-- | gcc/testsuite/g++.dg/template/inherit.C | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/template/inherit.C b/gcc/testsuite/g++.dg/template/inherit.C new file mode 100644 index 000000000..43af3cfc5 --- /dev/null +++ b/gcc/testsuite/g++.dg/template/inherit.C @@ -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(); +} |