blob: f9fc80ee9407ba463a761645d9ad95905cffb5f0 [file] [log] [blame]
Tanya Lattnerd13e0ae2004-11-06 22:29:57 +00001// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
2
Chris Lattnerfbbc2cc2003-10-27 17:51:31 +00003
4template<class T>
5struct super {
6 int Y;
7 void foo();
8};
9
Misha Brukmanfd939082005-04-21 23:48:37 +000010template <class T>
Chris Lattnerfbbc2cc2003-10-27 17:51:31 +000011struct test : virtual super<int> {};
12
13extern test<int> X;
14
15void foo() {
16 X.foo();
17}