llvm-6502/test/C++Frontend/2003-10-27-VirtualBaseClassCrash.cpp
Chris Lattner fbbc2cc63c New testcase which crashes the C++ FE
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9534 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-27 17:51:31 +00:00

16 lines
166 B
C++

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