mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +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 {
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user