Init new repository

This commit is contained in:
Krzosa Karol
2024-04-13 15:29:53 +02:00
commit 5a2e3dcec4
335 changed files with 61571 additions and 0 deletions

19
tests/lvalues.txt Normal file
View File

@@ -0,0 +1,19 @@
import "libc";
main :: proc(): int {
i4: llong = 4;
p := &i4;
assert(*p == i4);
*p -= 1;
*&i4 -= 1;
assert(*&i4 == 2);
pp := &p;
**pp += 2;
assert(i4 == 4);
assert(**pp == 4);
return 0;
}