locking: fix global locking handling for cond_guard()
[smatch.git] / validation / sm_mtag5.c
blob81a2ea499cbec2d2647877977c4954071819e650
1 #include <stdio.h>
2 #include "check_debug.h"
4 int x = 42;
6 struct foo {
7 int a, b, c;
8 };
9 struct foo aaa = {
10 .a = 1, .b = 2, .c = 3,
13 int array[10];
15 int main(void)
17 __smatch_implied(&x);
18 __smatch_implied(&aaa);
19 __smatch_implied(&aaa.b);
20 __smatch_implied(array);
21 __smatch_implied(&array[1]);
23 return 0;
27 * check-name: smatch mtag #5
28 * check-command: smatch -I.. sm_mtag5.c
30 * check-output-start
31 sm_mtag5.c:17 main() implied: &x = '7475740836921503744'
32 sm_mtag5.c:18 main() implied: &aaa = '6045882893841539072'
33 sm_mtag5.c:19 main() implied: &aaa.b = '6045882893841539076'
34 sm_mtag5.c:20 main() implied: array = '685747191403540480'
35 sm_mtag5.c:21 main() implied: &array[1] = '685747191403540484'
36 * check-output-end