Chris Lattner | fbbc2cc | 2003-10-27 17:51:31 +0000 | [diff] [blame] | 1 | |
2 | template<class T> | ||||
3 | struct super { | ||||
4 | int Y; | ||||
5 | void foo(); | ||||
6 | }; | ||||
7 | |||||
8 | template <class T> | ||||
9 | struct test : virtual super<int> {}; | ||||
10 | |||||
11 | extern test<int> X; | ||||
12 | |||||
13 | void foo() { | ||||
14 | X.foo(); | ||||
15 | } |