diff options
author | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2011-11-26 15:40:57 +0000 |
---|---|---|
committer | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2011-11-26 15:40:57 +0000 |
commit | 60b6624ae2b28ebe9fb30c2aa6115e4d5c1ab436 (patch) | |
tree | a78b0a79576773ead96a8d39902ad3a19b20ed2d /test/regression/Results | |
parent | 015c64c64a5a547dcef81a75a589eeaf034654cd (diff) | |
download | compcert-60b6624ae2b28ebe9fb30c2aa6115e4d5c1ab436.tar.gz compcert-60b6624ae2b28ebe9fb30c2aa6115e4d5c1ab436.zip |
cparser/*: refactoring of the expansion of read-modify-write operators
cparser/PackedStructs: treat r-m-w operations over byte-swapped fields
cparser/PackedStructs: allow static initialization of packed structs
test/regression: more packedstruct tests
git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1738 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'test/regression/Results')
-rw-r--r-- | test/regression/Results/packedstruct1 | 5 | ||||
-rw-r--r-- | test/regression/Results/packedstruct2 | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/test/regression/Results/packedstruct1 b/test/regression/Results/packedstruct1 index 75491328..0595cc38 100644 --- a/test/regression/Results/packedstruct1 +++ b/test/regression/Results/packedstruct1 @@ -7,8 +7,9 @@ sizeof(struct s2) = 16 offsetof(x) = 0, offsetof(y) = 2, offsetof(z) = 6 s2 = {x = 57, y = -456, z = 3.14159} -sizeof(struct s3) = 29 -s3 = {x = 123, y = 45678, z = 2147483649, v = -456, w = -1234567, p is ok, t = {111,222,333}} +sizeof(struct s3) = 31 +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 offsetof(x) = 0, offsetof(y) = 4, offsetof(z) = 8 diff --git a/test/regression/Results/packedstruct2 b/test/regression/Results/packedstruct2 new file mode 100644 index 00000000..360a5c6c --- /dev/null +++ b/test/regression/Results/packedstruct2 @@ -0,0 +1,6 @@ +s1 = {x = 2345, y = -12345678, z = 'x'} + +s3 = {x = 42, y = 123, z = 456789, v = -333, w = -314159, p is ok, t = {111,222,333}, s = {'o','k'}} + +s4 = {x = 123, y = -456789, z = 3.14159} + |