2 #include "check_debug.h"
8 int (*func
)(struct foo
*p
);
11 static int frob1(struct foo
*p
)
14 __smatch_implied(p
->a
);
17 static int frob2(struct foo
*p
)
20 __smatch_implied(p
->a
);
24 static struct foo one_struct
= {
28 static struct foo two_struct
= {
35 struct foo
*p
= &one_struct
;
39 // __smatch_implied(ret);
45 * check-name: smatch mtag #1
46 * check-command: validation/smatch_db_test.sh -I.. sm_mtag1.c
49 sm_mtag1.c:14 frob1() implied: p->a = '1'
50 sm_mtag1.c:20 frob2() implied: p->a = '2'