mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
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:
parent
f7b1bdf3b6
commit
8a879a16cf
@ -1,10 +1,24 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
struct sometimes {
|
struct sometimes {
|
||||||
short offset; short bit;
|
short offset; short bit;
|
||||||
short live_length; short calls_crossed;
|
short live_length; short calls_crossed;
|
||||||
} Y;
|
} Y;
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
int X;
|
||||||
|
{
|
||||||
struct sometimes { int X, Y; } S;
|
struct sometimes { int X, Y; } S;
|
||||||
S.X = 1;
|
S.X = 1;
|
||||||
return Y.offset;
|
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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user