Files
lib_compiler/tests/regression_sizeof_mismatch_with_c.txt
2024-04-13 15:29:53 +02:00

19 lines
363 B
Plaintext

import "libc";
TEST_R_CommandKind :: typedef int;
TEST_R_Command :: struct {
kind: TEST_R_CommandKind;
next: *TEST_R_Command;
out : *int;
data: *int;
count: int;
max_count: int;
} @dont_mangle
main :: proc(): int {
sizeof_in_c: ullong = #`sizeof(TEST_R_Command)`;
assert(sizeof_in_c == sizeof(:TEST_R_Command));
return 0;
}