Debian Codegraph @

gcc/testsuite/g++.dg/template/inherit.C

raw
1 // Contributed by Gabriel Dos Reis <[email protected]>
2 // { dg-do compile }
3
4 template<typename T>
5 struct X { void f() { } };
6
7 struct Z : X<int> { };
8
9 int main()
10 {
11 Z z;
12 z.X::f();
13 }