xref: /illumos-gate/usr/src/tools/smatch/src/validation/cond-address.c (revision e82490700e19f1b8a2cef6102f4726144d281988)
1 extern void f(void);
2 extern int a[];
3 
4 int foo(void) { if (f) return 1; return 0; }
5 int bar(void) { if (a) return 1; return 0; }
6 int qux(void) { if (f && a) return 1; return 0; }
7 
8 /*
9  * check-name: cond-address.c
10  * check-command: test-linearize -Wno-decl $file
11  * check-output-ignore
12  *
13  * check-output-excludes: VOID
14  */
15