From fbc778079d50a4af45b9a648eab56cef29ac75f4 Mon Sep 17 00:00:00 2001 From: Bernhard Schommer Date: Tue, 27 Mar 2018 17:15:42 +0200 Subject: 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 --- cparser/Cutil.mli | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cparser/Cutil.mli') 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 *) -- cgit