diff options
author | Bernhard Schommer <bschommer@users.noreply.github.com> | 2018-03-27 17:15:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-27 17:15:42 +0200 |
commit | fbc778079d50a4af45b9a648eab56cef29ac75f4 (patch) | |
tree | 8131a5099e363d68dc3a565e83ed72485138606f /cparser/Cutil.mli | |
parent | 2b79fd958026b3a9bcdd2452b1a4c217a084de92 (diff) | |
download | compcert-fbc778079d50a4af45b9a648eab56cef29ac75f4.tar.gz compcert-fbc778079d50a4af45b9a648eab56cef29ac75f4.zip |
Sizeof and _Alignof are not allowed on bit-fields (#67)
Sizeof and _Alignof are not allowed on bit-fields
Sizeof and _Alignof are not allowed to be applied to a expression
that designates a bit-field member.
Bug 23311
Diffstat (limited to 'cparser/Cutil.mli')
-rw-r--r-- | cparser/Cutil.mli | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cparser/Cutil.mli b/cparser/Cutil.mli index 87a69f12..fb875b0d 100644 --- a/cparser/Cutil.mli +++ b/cparser/Cutil.mli @@ -243,6 +243,8 @@ val valid_array_size: Env.t -> typ -> int64 -> bool (* Test whether the array size fits in half of the address space *) val is_volatile_variable: Env.t -> exp -> bool (* Test whether the expression is an access to a volatile variable *) +val is_bitfield: Env.t -> exp -> bool + (* Test whether the expression is a bit-field *) (* Constructors *) |