parent
ce55d248ca
commit
4c8c7b0ddf
13
gcc/testsuite/g++.dg/template/inherit.C
Normal file
13
gcc/testsuite/g++.dg/template/inherit.C
Normal file
@ -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();
|
||||
}
|
Loading…
Reference in New Issue
Block a user