mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-28 09:31:03 +00:00
New testcase which crashes the C++ FE
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9534 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d184c67b52
commit
fbbc2cc63c
15
test/C++Frontend/2003-10-27-VirtualBaseClassCrash.cpp
Normal file
15
test/C++Frontend/2003-10-27-VirtualBaseClassCrash.cpp
Normal file
@ -0,0 +1,15 @@
|
||||
|
||||
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();
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user