Added testing files

This commit is contained in:
Tristan B. Kildaire 2021-11-02 15:14:03 +02:00
parent ff9890437d
commit 43891b1dfb
3 changed files with 54 additions and 0 deletions

3
.gitignore vendored
View File

@ -14,3 +14,6 @@ tlang-test-*
*.obj
*.lst
dub.selections.json
test
.gitignore
tets

40
test.d Normal file
View File

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

11
tets.d Normal file
View File

@ -0,0 +1,11 @@
void main()
{
asm
{
mov RAX, 3;
push 5;
// pop RAX;
}
}