aboutsummaryrefslogtreecommitdiffstats
path: root/cparser/Cutil.mli
diff options
context:
space:
mode:
authorBernhard Schommer <bschommer@users.noreply.github.com>2018-03-27 17:15:42 +0200
committerGitHub <noreply@github.com>2018-03-27 17:15:42 +0200
commitfbc778079d50a4af45b9a648eab56cef29ac75f4 (patch)
tree8131a5099e363d68dc3a565e83ed72485138606f /cparser/Cutil.mli
parent2b79fd958026b3a9bcdd2452b1a4c217a084de92 (diff)
downloadcompcert-kvx-fbc778079d50a4af45b9a648eab56cef29ac75f4.tar.gz
compcert-kvx-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.mli2
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 *)