Added testing files
This commit is contained in:
parent
ff9890437d
commit
43891b1dfb
|
@ -14,3 +14,6 @@ tlang-test-*
|
||||||
*.obj
|
*.obj
|
||||||
*.lst
|
*.lst
|
||||||
dub.selections.json
|
dub.selections.json
|
||||||
|
test
|
||||||
|
.gitignore
|
||||||
|
tets
|
||||||
|
|
|
@ -0,0 +1,40 @@
|
||||||
|
module typeChecking3;
|
||||||
|
void main()
|
||||||
|
{
|
||||||
|
|
||||||
|
asm
|
||||||
|
{
|
||||||
|
mov R15, RSP;
|
||||||
|
}
|
||||||
|
|
||||||
|
asm
|
||||||
|
{
|
||||||
|
sub RSP, 4;
|
||||||
|
mov dword ptr [RSP], 69;
|
||||||
|
}
|
||||||
|
|
||||||
|
asm
|
||||||
|
{
|
||||||
|
sub RSP, 4;
|
||||||
|
mov dword ptr [RSP], 69;
|
||||||
|
}
|
||||||
|
|
||||||
|
asm
|
||||||
|
{
|
||||||
|
sub RSP, 4;
|
||||||
|
mov dword ptr [RSP], 69;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
asm
|
||||||
|
{
|
||||||
|
mov RSP, R15;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int h = -1;
|
||||||
|
h = *((&h)-4);
|
||||||
|
import std.stdio;
|
||||||
|
writeln(h);
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue