blob: abda017ab96bf5c75bbf49964380381f26773f28 [file] [log] [blame]
Dan Gohmanfea1dd02009-08-25 15:38:29 +00001// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
Tanya Lattnerd13e0ae2004-11-06 22:29:57 +00002
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}