llvm-6502/test/C++Frontend/2003-10-27-VirtualBaseClassCrash.cpp

16 lines
166 B
C++
Raw Normal View History

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();
}