*new* check_macros: find macro precedence bugs
[smatch.git] / validation / sm_select2.c
blob4df07508d8cea5e4fec9bfef3caada7129c63865
1 #include "check_debug.h"
3 int check();
5 int x,y,z;
6 int func(void)
8 int *sd = &x;
10 while (!(! sd ? -19 :
11 (*sd ?
12 check() : -515)))
13 __smatch_value("sd");
16 * check-name: Ternary Conditions #2
17 * check-command: smatch -I.. sm_select2.c
19 * check-output-start
20 sm_select2.c +13 func(7) sd = min-(-1),1-max
21 * check-output-end