Add illumos projects
[smatch.git] / validation / sm_mtag6.c
blobfea036520ef3865205e8aa119ed4245d611c7316
1 #include <stdio.h>
2 #include "check_debug.h"
4 int frob1(int *p)
6 __smatch_implied(*p);
9 int frob2(int *p)
11 __smatch_implied(*p);
14 int x = 42;
16 struct foo {
17 int a, b, c;
19 struct foo aaa = {
20 .a = 1, .b = 2, .c = 3,
23 int array[10];
25 int main(void)
27 frob1(&x);
28 frob2(&aaa.b);
30 return 0;
34 * check-name: smatch mtag #6
35 * check-command: validation/smatch_db_test.sh -I.. sm_mtag6.c
37 * check-output-start
38 sm_mtag6.c:6 frob1() implied: *p = '42'
39 sm_mtag6.c:11 frob2() implied: *p = '2'
40 * check-output-end