Skip to content
Snippets Groups Projects
Commit f701e140 authored by Maxime Jacquemin's avatar Maxime Jacquemin Committed by Virgile Prevosto
Browse files

[Kernel] Adding test about fixed issue

parent fccc7da6
No related branches found
No related tags found
No related merge requests found
......@@ -45,10 +45,6 @@ type constant =
(** size of logic array. *)
type array_size = lexpr option
(* ASinteger of string (** integer constant *) *)
(* | ASidentifier of string (** a variable or macro*) *)
(* | ASlexpr of lexpr *)
(* | ASnone (** none *) *)
(** logic types. *)
and logic_type =
......
#include <stddef.h>
typedef struct sub_type {
int tag;
} sub_type;
typedef struct {
int *ptr;
int foo[sizeof(sub_type)];
} TEST_TYPE;
int main(){
size_t test = sizeof(int[sizeof(sub_type)]);
/*@ assert test == sizeof(int[sizeof(sub_type)]); */
}
[kernel] Parsing acsl_type_expression_array.c (with preprocessing)
/* Generated by Frama-C */
#include "stddef.h"
struct sub_type {
int tag ;
};
typedef struct sub_type sub_type;
int main(void)
{
int __retres;
size_t test = sizeof(int [sizeof(sub_type)]);
/*@ assert test ≡ sizeof(int [sizeof(sub_type)]); */ ;
__retres = 0;
return __retres;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment