[llvm-commits] CVS: llvm/test/Regression/CFrontend/2005-09-24-BitFieldCrash.c
Chris Lattner
lattner at cs.uiuc.edu
Sat Sep 24 13:54:45 PDT 2005
Changes in directory llvm/test/Regression/CFrontend:
2005-09-24-BitFieldCrash.c added (r1.1)
---
Log message:
new testcase that crashes the CFE
---
Diffs of the changes: (+33 -0)
2005-09-24-BitFieldCrash.c | 33 +++++++++++++++++++++++++++++++++
1 files changed, 33 insertions(+)
Index: llvm/test/Regression/CFrontend/2005-09-24-BitFieldCrash.c
diff -c /dev/null llvm/test/Regression/CFrontend/2005-09-24-BitFieldCrash.c:1.1
*** /dev/null Sat Sep 24 15:54:43 2005
--- llvm/test/Regression/CFrontend/2005-09-24-BitFieldCrash.c Sat Sep 24 15:54:33 2005
***************
*** 0 ****
--- 1,33 ----
+ // RUN: %llvmgcc %s -S -o -
+
+ struct tree_common {};
+
+ struct tree_int_cst {
+ struct tree_common common;
+ struct tree_int_cst_lowhi {
+ unsigned long long low;
+ long long high;
+ } int_cst;
+ };
+
+ enum XXX { yyy };
+
+ struct tree_function_decl {
+ struct tree_common common;
+ long long locus, y;
+ __extension__ enum XXX built_in_class : 2;
+
+ };
+
+
+ union tree_node {
+ struct tree_int_cst int_cst;
+ struct tree_function_decl function_decl;
+ };
+
+
+ void foo (union tree_node * decl) {
+ decl->function_decl.built_in_class != 0;
+ }
+
+
More information about the llvm-commits
mailing list