Tanya Lattner | d13e0ae | 2004-11-06 22:29:57 +0000 | [diff] [blame^] | 1 | // RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null |
2 | |||||
Chris Lattner | fbbc2cc | 2003-10-27 17:51:31 +0000 | [diff] [blame] | 3 | |
4 | template<class T> | ||||
5 | struct super { | ||||
6 | int Y; | ||||
7 | void foo(); | ||||
8 | }; | ||||
9 | |||||
10 | template <class T> | ||||
11 | struct test : virtual super<int> {}; | ||||
12 | |||||
13 | extern test<int> X; | ||||
14 | |||||
15 | void foo() { | ||||
16 | X.foo(); | ||||
17 | } |