[llvm-commits] CVS: llvm/test/Regression/C++Frontend/2003-06-08-BaseType.cpp 2003-06-08-VirtualFunctions.cpp 2003-06-13-Crasher.cpp

Chris Lattner lattner at cs.uiuc.edu
Mon Jun 16 07:06:04 PDT 2003


Changes in directory llvm/test/Regression/C++Frontend:

2003-06-08-BaseType.cpp added (r1.1)
2003-06-08-VirtualFunctions.cpp added (r1.1)
2003-06-13-Crasher.cpp added (r1.1)

---
Log message:

New testcases for bugs and the new DAE pass


---
Diffs of the changes:

Index: llvm/test/Regression/C++Frontend/2003-06-08-BaseType.cpp
diff -c /dev/null llvm/test/Regression/C++Frontend/2003-06-08-BaseType.cpp:1.1
*** /dev/null	Mon Jun 16 07:05:48 2003
--- llvm/test/Regression/C++Frontend/2003-06-08-BaseType.cpp	Mon Jun 16 07:05:38 2003
***************
*** 0 ****
--- 1,17 ----
+ 
+ 
+ struct foo {
+   int y;
+   foo();
+ };
+ 
+ struct bar : public foo {
+   //int x;
+   bar();
+ };
+ 
+ //int bar::X() { return 0; }
+ 
+ bar::bar() {
+ 
+ }


Index: llvm/test/Regression/C++Frontend/2003-06-08-VirtualFunctions.cpp
diff -c /dev/null llvm/test/Regression/C++Frontend/2003-06-08-VirtualFunctions.cpp:1.1
*** /dev/null	Mon Jun 16 07:05:48 2003
--- llvm/test/Regression/C++Frontend/2003-06-08-VirtualFunctions.cpp	Mon Jun 16 07:05:38 2003
***************
*** 0 ****
--- 1,23 ----
+ 
+ 
+ struct foo {
+   int y;
+   foo();
+   virtual int T() = 0;
+ };
+ 
+ struct bar : public foo {
+   //int x;
+   bar();
+   int T() {}
+ };
+ 
+ //int bar::X() { return 0; }
+ 
+ foo::foo() : y(4) {
+ 
+ }
+ 
+ bar::bar() {
+ 
+ }


Index: llvm/test/Regression/C++Frontend/2003-06-13-Crasher.cpp
diff -c /dev/null llvm/test/Regression/C++Frontend/2003-06-13-Crasher.cpp:1.1
*** /dev/null	Mon Jun 16 07:05:48 2003
--- llvm/test/Regression/C++Frontend/2003-06-13-Crasher.cpp	Mon Jun 16 07:05:38 2003
***************
*** 0 ****
--- 1,8 ----
+ void bar();
+ 
+ void foo() {
+ 	  struct TEST {
+ 		  ~TEST() { bar(); }
+ 	  } TESTOBJ;
+ 
+ }





More information about the llvm-commits mailing list