summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/C++Frontend/2003-10-27-VirtualBaseClassCrash.cpp15
1 files changed, 15 insertions, 0 deletions
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 0000000000..39ec5c76fa
--- /dev/null
+++ b/test/C++Frontend/2003-10-27-VirtualBaseClassCrash.cpp
@@ -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();
+}