The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
287 B
18 lines
287 B
3 years ago
|
module test_sizeof;
|
||
|
|
||
|
alias voidp = void*;
|
||
|
|
||
|
int main()
|
||
|
{
|
||
|
version(Is64bits) {
|
||
|
enum expectedSz = 8;
|
||
|
}
|
||
|
else version(Is32bits) {
|
||
|
enum expectedSz = 4;
|
||
|
}
|
||
|
else {
|
||
|
assert(false, "No version set!");
|
||
|
}
|
||
|
return expectedSz == voidp.sizeof ? 0 : 1;
|
||
|
}
|