aboutsummaryrefslogtreecommitdiffstats
path: root/test/regression/Results/packedstruct1-32
blob: e7d1c296029132260db0fc493c0906af7ab875d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
sizeof(struct s1) = 14
precomputed sizeof(struct s1) = 14
offsetof(x) = 0, offsetof(y) = 2, offsetof(z) = 6
precomputed offsetof(x) = 0, offsetof(y) = 2, offsetof(z) = 6
s1 = {x = 123, y = -456, z = 3.14159}

sizeof(struct s2) = 16
precomputed sizeof(struct s2) = 16
&s2 mod 16 = 0
offsetof(x) = 0, offsetof(y) = 2, offsetof(z) = 6
precomputed offsetof(x) = 0, offsetof(y) = 2, offsetof(z) = 6
s2 = {x = 57, y = -456, z = 3.14159}

sizeof(struct s3) = 31
precomputed sizeof(struct s3) = 31
offsetof(s) = 29
precomputed offsetof(s) = 29
s3 = {x = 123, y = 45678, z = 2147483649, v = -456, w = -1234567, p is ok, t = {111,222,333}, s = {'o','k'}}

sizeof(struct s4) = 16
precomputed sizeof(struct s4) = 16
offsetof(x) = 0, offsetof(y) = 4, offsetof(z) = 8
precomputed offsetof(x) = 0, offsetof(y) = 4, offsetof(z) = 8
s4 = {x = 123, y = -456, z = 3.14159}

sizeof(struct s5) = 14
precomputed sizeof(struct s5) = 14
offsetof(x) = 0, offsetof(y) = 2, offsetof(z) = 6
precomputed offsetof(x) = 0, offsetof(y) = 2, offsetof(z) = 6
s5 = {x = 123, y = -456, z = 3.14159}

sizeof(struct s6) = 14
precomputed sizeof(struct s6) = 14
offsetof(x) = 0, offsetof(y) = 2, offsetof(z) = 6
precomputed offsetof(x) = 0, offsetof(y) = 2, offsetof(z) = 6
s62 = {x = 123, y = -456, z = 3.14159}