Safety commit

This commit is contained in:
Mid
2024-11-20 16:36:17 +02:00
parent 07f6d57aba
commit ba6f9fb6c1
16 changed files with 708 additions and 317 deletions

View File

@@ -1,6 +1,11 @@
u32 x: 123;
u33 y: 5;
u3 *o = 5000;
u3 z = *o;
u3* o = 5000;
u32 z = *o;
u3 p = *(o + z);
u3 *g = o - z;
p = *g;
u32 c = 566;
u16 j = c;

6
tests/spill.nct Normal file
View File

@@ -0,0 +1,6 @@
u8 a = 4;
u8 b = 1;
u8 c = 9;
u8 d = 5;
u8 e = 22;
u8 f = a + b + c + d + e;

1
tests/stack.nct Normal file
View File

@@ -0,0 +1 @@
@stack = @stack - 123;