expressions: make assign_expression() take an op argument
[smatch.git] / validation / backend / int-cond.c
blob2a5a43482f3d892ea469ef0930bb9599ab5b6eee
1 static long foo(long a, long b, long c)
3 return a? b:c;
6 static long foo_bool(_Bool a, long b, long c)
8 return a? b:c;
11 static long bar(long a, long b, long c)
13 if (a)
14 return b;
15 else
16 return b + c;
19 static long bar_bool(_Bool a, long b, long c)
21 if (a)
22 return b;
23 else
24 return b + c;
28 * check-name: Non-bool condition values in branch/select
29 * check-command: sparsec -c $file -o tmp.o