[llvm-commits] CVS: llvm/test/Regression/CFrontend/2004-11-27-InvalidConstantExpr.c
Chris Lattner
lattner at cs.uiuc.edu
Sat Nov 27 11:44:22 PST 2004
Changes in directory llvm/test/Regression/CFrontend:
2004-11-27-InvalidConstantExpr.c added (r1.1)
---
Log message:
New testcase for PR424: http://llvm.cs.uiuc.edu/PR424
---
Diffs of the changes: (+10 -0)
Index: llvm/test/Regression/CFrontend/2004-11-27-InvalidConstantExpr.c
diff -c /dev/null llvm/test/Regression/CFrontend/2004-11-27-InvalidConstantExpr.c:1.1
*** /dev/null Sat Nov 27 13:44:18 2004
--- llvm/test/Regression/CFrontend/2004-11-27-InvalidConstantExpr.c Sat Nov 27 13:44:07 2004
***************
*** 0 ****
--- 1,10 ----
+ // RUN: %llvmgcc %s -S -o - | not grep 'foo\* sub'
+ // This should not produce a subtrace constantexpr of a pointer
+ struct foo {
+ int Y;
+ char X[100];
+ } F;
+
+ int test(char *Y) {
+ return Y - F.X;
+ }
More information about the llvm-commits
mailing list