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

21
tests/builtins3.txt Normal file
View File

@@ -0,0 +1,21 @@
// #failed: resolve
A :: struct {
a: int;
b: int;
}
main :: proc(): int {
offsetof(:A, b);
// #error: first argument should be a type
offsetof(A, b);
// #error: expected 2 arguments to builtin procedure 'offsetof', got: 3
offsetof(:A, b, b);
// #error: named arguments in this builtin procedure are illegal
offsetof(a = :A, b);
return 0;
}