Init new repository
This commit is contained in:
19
tests/regression_sizeof_mismatch_with_c.txt
Normal file
19
tests/regression_sizeof_mismatch_with_c.txt
Normal file
@@ -0,0 +1,19 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user