Make the testcase even more insane

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6280 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-05-22 15:49:58 +00:00
parent f7b1bdf3b6
commit 8a879a16cf

View File

@ -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;
}