expressions: make assign_expression() take an op argument
[smatch.git] / validation / sm_implied13.c
blobfad085a5a06ca85b8eb7e234dfc096bec5fc9fa6
1 #include "check_debug.h"
3 int main(int x)
5 int a = 1;
7 if (x & 12)
8 a = 2;
9 __smatch_implied(a);
10 if (!(x & 12))
11 return 0;
12 __smatch_implied(a);
13 return 0;
17 * check-name: smatch implied #13
18 * check-command: smatch -I.. sm_implied13.c
20 * check-output-start
21 sm_implied13.c:9 main() implied: a = '1-2'
22 sm_implied13.c:12 main() implied: a = '2'
23 * check-output-end