diff options
author | Xavier Leroy <xavier.leroy@inria.fr> | 2015-07-08 10:16:53 +0200 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@inria.fr> | 2015-07-08 10:16:53 +0200 |
commit | 2b1c0aa69adafac185dd6c4e460d83517bcc8884 (patch) | |
tree | 00efb84c95bb3c75286dc0085e9c38b6cf5a25be /test/regression/Results | |
parent | 24a08b236f6334f5c01e423fb564892e070b4bff (diff) | |
download | compcert-2b1c0aa69adafac185dd6c4e460d83517bcc8884.tar.gz compcert-2b1c0aa69adafac185dd6c4e460d83517bcc8884.zip |
Fix issue with bit fields of type _Bool
cparser/Bitfields.ml: when assigning to a bit field of type _Bool, the
right-hand side must be normalized to 0 or 1 via a cast to _Bool.
test/regression/bitfields{1,9}.c: add corresponding test cases.
Diffstat (limited to 'test/regression/Results')
-rw-r--r-- | test/regression/Results/bitfields9 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/regression/Results/bitfields9 b/test/regression/Results/bitfields9 index ca74f1f4..a1d0e9fd 100644 --- a/test/regression/Results/bitfields9 +++ b/test/regression/Results/bitfields9 @@ -1,10 +1,10 @@ glob_s = { a = -12, b = 1 } -glob_t = { c = 123, d = 0, e = -45 } +glob_t = { c = 123, d = 1, e = -45 } loc_s = { a = 11, b = 2 } loc_t = { c = 11, d = 1, e = 2 } compound_s = { a = 2, b = 3 } -compound_t = { c = 2, d = 0, e = -11 } +compound_t = { c = 2, d = 1, e = -11 } loc_s = { a = 7, b = 2 } loc_t = { c = 7, d = 1, e = 50 } compound_s = { a = -14, b = 3 } -compound_t = { c = 50, d = 0, e = -7 } +compound_t = { c = 50, d = 1, e = -7 } |