[llvm-commits] CVS: llvm/test/Regression/C++Frontend/2003-10-27-VirtualBaseClassCrash.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Oct 27 11:52:01 PST 2003
Changes in directory llvm/test/Regression/C++Frontend:
2003-10-27-VirtualBaseClassCrash.cpp added (r1.1)
---
Log message:
New testcase which crashes the C++ FE
---
Diffs of the changes: (+15 -0)
Index: llvm/test/Regression/C++Frontend/2003-10-27-VirtualBaseClassCrash.cpp
diff -c /dev/null llvm/test/Regression/C++Frontend/2003-10-27-VirtualBaseClassCrash.cpp:1.1
*** /dev/null Mon Oct 27 11:51:41 2003
--- llvm/test/Regression/C++Frontend/2003-10-27-VirtualBaseClassCrash.cpp Mon Oct 27 11:51:31 2003
***************
*** 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();
+ }
More information about the llvm-commits
mailing list