☰
Debian Codegraph
@
1.12.1-2
1.12.1-1
1.12.0-3
1.12.0-2
1.11.1-3
1.11.1-2
/
/
test cases
/
d
/
15 compiler run checks
/
test_sizeof.d
☽
☼
test cases/d/15 compiler run checks/test_sizeof.d
code
plain
raw
Apache-2.0
2012-2021 The Meson development team
debian/copyright
1
module test_sizeof;
2
3
alias voidp = void*;
4
5
int main()
6
{
7
version(Is64bits) {
8
enum expectedSz = 8;
9
}
10
else version(Is32bits) {
11
enum expectedSz = 4;
12
}
13
else {
14
assert(false, "No version set!");
15
}
16
return expectedSz == voidp.sizeof ? 0 : 1;
17
}