Browse Source

Added testing files

deps_refactor
Tristan B. Kildaire 1 year ago
parent
commit
43891b1dfb
  1. 3
      .gitignore
  2. 40
      test.d
  3. 11
      tets.d

3
.gitignore vendored

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

40
test.d

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

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