1 #include "check_debug.h"
3 void memset(void *p
, char pat
, int size
);
9 void my_func(struct foo
*p
)
11 memset(p
, 0, sizeof(*p
));
15 struct foo
*my_pointer
;
23 __smatch_implied(my_pointer
->a
);
24 __smatch_implied(my_pointer
->b
);
25 __smatch_implied(foo
.a
);
26 __smatch_implied(foo
.b
);
30 * check-name: smatch: inline #3
31 * check-command: smatch -I.. sm_inline3.c
34 sm_inline3.c:23 test() implied: my_pointer->a = '1'
35 sm_inline3.c:24 test() implied: my_pointer->b = '0'
36 sm_inline3.c:25 test() implied: foo.a = '1'
37 sm_inline3.c:26 test() implied: foo.b = '0'