diff options
Diffstat (limited to 'test/regression/Results')
-rw-r--r-- | test/regression/Results/attribs1 | 2 | ||||
-rw-r--r-- | test/regression/Results/packedstruct1 | 20 |
2 files changed, 22 insertions, 0 deletions
diff --git a/test/regression/Results/attribs1 b/test/regression/Results/attribs1 index e9954741..0464ec87 100644 --- a/test/regression/Results/attribs1 +++ b/test/regression/Results/attribs1 @@ -2,3 +2,5 @@ Address of a = 0 mod 16 Address of b = 0 mod 8 Delta d - c = 4 Delta f - e = 4 +Address of u = 0 mod 8 +Address of v = 0 mod 8 diff --git a/test/regression/Results/packedstruct1 b/test/regression/Results/packedstruct1 new file mode 100644 index 00000000..fe19bffc --- /dev/null +++ b/test/regression/Results/packedstruct1 @@ -0,0 +1,20 @@ +sizeof(struct s1) = 14 +offsetof(x) = 0, offsetof(y) = 2, offsetof(z) = 6 +s1 = {x = 123, y = -456, z = 3.14159} + +sizeof(struct s2) = 16 +&s2 mod 16 = 0 +offsetof(x) = 0, offsetof(y) = 2, offsetof(z) = 6 +s2 = {x = 57, y = -456, z = 3.14159} + +sizeof(struct s3) = 13 +s3 = {x = 123, y = 45678, z = 2147483649, v = -456, w = -1234567} + +sizeof(struct s4) = 16 +offsetof(x) = 0, offsetof(y) = 4, offsetof(z) = 8 +s4 = {x = 123, y = -456, z = 3.14159} + +sizeof(struct s5) = 14 +offsetof(x) = 0, offsetof(y) = 2, offsetof(z) = 6 +s5 = {x = 123, y = -456, z = 3.14159} + |