[Cil] avoid crashing due to attribute differences
Attributes such as 'visibility' must be ignored for casting purposes, to avoid errors with implicit casts.
Showing
- src/kernel_services/ast_queries/cil.ml 10 additions, 2 deletionssrc/kernel_services/ast_queries/cil.ml
- tests/syntax/cast-struct-function-attr.i 7 additions, 0 deletionstests/syntax/cast-struct-function-attr.i
- tests/syntax/oracle/cast-struct-function-attr.res.oracle 1 addition, 0 deletionstests/syntax/oracle/cast-struct-function-attr.res.oracle
- tests/syntax/oracle/cast-struct-function-attr_ocode.i 12 additions, 0 deletionstests/syntax/oracle/cast-struct-function-attr_ocode.i
Loading
Please register or sign in to comment