Skip to content
Snippets Groups Projects
Commit 828b1cd1 authored by Virgile Prevosto's avatar Virgile Prevosto
Browse files

add test for _Nullable handling

parent 902116fd
No related branches found
No related tags found
No related merge requests found
/* _Nullable is a macOS-specific qualifier. For now, we just ignore it. */
int * _Nullable test(void) { return (int*)0; }
extern int (* _Nullable _fptr)(void);
int f(int * _Nullable x) { if (x) return *x; else return 0; }
[kernel] Parsing nullable.i (no preprocessing)
/* Generated by Frama-C */
int *test(void)
{
int *__retres;
__retres = (int *)0;
return __retres;
}
int f(int *x)
{
int __retres;
if (x) {
__retres = *x;
goto return_label;
}
else {
__retres = 0;
goto return_label;
}
return_label: 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