New testcase which crashes the C++ FE
authorChris Lattner <sabre@nondot.org>
Mon, 27 Oct 2003 17:51:31 +0000 (17:51 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 27 Oct 2003 17:51:31 +0000 (17:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9534 91177308-0d34-0410-b5e6-96231b3b80d8

test/C++Frontend/2003-10-27-VirtualBaseClassCrash.cpp [new file with mode: 0644]

diff --git a/test/C++Frontend/2003-10-27-VirtualBaseClassCrash.cpp b/test/C++Frontend/2003-10-27-VirtualBaseClassCrash.cpp
new file mode 100644 (file)
index 0000000..39ec5c7
--- /dev/null
@@ -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();
+}