1 #include "check_debug.h"
11 struct foo
*get_foo(struct bar
*bar
)
16 void frob(struct bar
*bar
)
18 struct foo
*f
= bar
->foo
;
22 int test(struct bar
*bar
)
24 struct foo
*f
= get_foo(bar
);
28 __smatch_implied(bar
->foo
->a
);
29 __smatch_implied(f
->a
);
35 * check-name: smatch: indirection #2
36 * check-command: smatch -I.. sm_indirection2.c
39 sm_indirection2.c:28 test() implied: bar->foo->a = '5'
40 sm_indirection2.c:29 test() implied: f->a = '5'