1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
template<class T> struct super { int Y; void foo(); }; template <class T> struct test : virtual super<int> {}; extern test<int> X; void foo() { X.foo(); }