[llvm-commits] CVS: llvm/test/Regression/C++Frontend/2003-05-22-LocalTypeTest.c
Chris Lattner
lattner at cs.uiuc.edu
Thu May 22 10:59:07 PDT 2003
Changes in directory llvm/test/Regression/C++Frontend:
2003-05-22-LocalTypeTest.c updated: 1.1 -> 1.2
---
Log message:
Make the testcase even more insane
---
Diffs of the changes:
Index: llvm/test/Regression/C++Frontend/2003-05-22-LocalTypeTest.c
diff -u llvm/test/Regression/C++Frontend/2003-05-22-LocalTypeTest.c:1.1 llvm/test/Regression/C++Frontend/2003-05-22-LocalTypeTest.c:1.2
--- llvm/test/Regression/C++Frontend/2003-05-22-LocalTypeTest.c:1.1 Thu May 22 10:33:33 2003
+++ llvm/test/Regression/C++Frontend/2003-05-22-LocalTypeTest.c Thu May 22 10:49:58 2003
@@ -1,10 +1,24 @@
+#include <stdio.h>
+
struct sometimes {
short offset; short bit;
short live_length; short calls_crossed;
} Y;
int main() {
- struct sometimes { int X, Y; } S;
- S.X = 1;
- return Y.offset;
+ int X;
+ {
+ struct sometimes { int X, Y; } S;
+ S.X = 1;
+ X = S.X;
+ }
+ {
+ struct sometimes { char X; } S;
+ S.X = -1;
+ X += S.X;
+ }
+ X += Y.offset;
+
+ printf("Result is %d\n", X);
+ return X;
}
More information about the llvm-commits
mailing list