[llvm-commits] CVS: llvm/test/Regression/CFrontend/2005-03-06-OffsetOfStructCrash.c
Chris Lattner
lattner at cs.uiuc.edu
Sun Mar 6 11:40:35 PST 2005
Changes in directory llvm/test/Regression/CFrontend:
2005-03-06-OffsetOfStructCrash.c added (r1.1)
---
Log message:
new testcase reduced from the MultiSource/Applications/d failure last night.
---
Diffs of the changes: (+14 -0)
2005-03-06-OffsetOfStructCrash.c | 14 ++++++++++++++
1 files changed, 14 insertions(+)
Index: llvm/test/Regression/CFrontend/2005-03-06-OffsetOfStructCrash.c
diff -c /dev/null llvm/test/Regression/CFrontend/2005-03-06-OffsetOfStructCrash.c:1.1
*** /dev/null Sun Mar 6 13:40:29 2005
--- llvm/test/Regression/CFrontend/2005-03-06-OffsetOfStructCrash.c Sun Mar 6 13:40:19 2005
***************
*** 0 ****
--- 1,14 ----
+ // RUN: %llvmgcc %s -S -o -
+
+ struct Y {};
+ struct XXX {
+ struct Y F;
+ };
+
+ void test1() {
+ (int)&((struct XXX*)(((void *)0)))->F;
+ }
+
+ void test2() {
+ &((struct XXX*)(((void *)0)))->F;
+ }
More information about the llvm-commits
mailing list