From fbbc2cc63cf816f30b9a44435db5fafa8ca5e8ec Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 27 Oct 2003 17:51:31 +0000 Subject: [PATCH] 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-VirtualBaseClassCrash.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/C++Frontend/2003-10-27-VirtualBaseClassCrash.cpp diff --git a/test/C++Frontend/2003-10-27-VirtualBaseClassCrash.cpp b/test/C++Frontend/2003-10-27-VirtualBaseClassCrash.cpp new file mode 100644 index 00000000000..39ec5c76fac --- /dev/null +++ b/test/C++Frontend/2003-10-27-VirtualBaseClassCrash.cpp @@ -0,0 +1,15 @@ + +template +struct super { + int Y; + void foo(); +}; + +template +struct test : virtual super {}; + +extern test X; + +void foo() { + X.foo(); +}