[llvm-commits] CVS: llvm/test/Regression/C++Frontend/2006-03-01-GimplifyCrash.cpp

Chris Lattner lattner at cs.uiuc.edu
Wed Mar 1 14:45:24 PST 2006



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

2006-03-01-GimplifyCrash.cpp added (r1.1)
---
Log message:

testcase that crashed the new CFE


---
Diffs of the changes:  (+14 -0)

 2006-03-01-GimplifyCrash.cpp |   14 ++++++++++++++
 1 files changed, 14 insertions(+)


Index: llvm/test/Regression/C++Frontend/2006-03-01-GimplifyCrash.cpp
diff -c /dev/null llvm/test/Regression/C++Frontend/2006-03-01-GimplifyCrash.cpp:1.1
*** /dev/null	Wed Mar  1 16:45:22 2006
--- llvm/test/Regression/C++Frontend/2006-03-01-GimplifyCrash.cpp	Wed Mar  1 16:45:12 2006
***************
*** 0 ****
--- 1,14 ----
+ // RUN: %llvmgxx -S %s -o -
+ 
+ struct PrefMapElem {
+   virtual ~PrefMapElem(); 
+   unsigned int fPrefId;
+ };
+ 
+ int foo() {
+   PrefMapElem* fMap;
+   if (fMap[0].fPrefId == 1)
+     return 1;
+   
+   return 0;
+ }






More information about the llvm-commits mailing list