get_variable_from_expr_complex(): return proper symbol for array expressions
[smatch.git] / validation / sm_loops3.c
blob818f9377c5a46c45e1361f99339544bbf02aaf95
1 #include "check_debug.h"
3 int checker(void);
5 int x;
6 int i;
7 void func(void)
9 int ar[10];
11 if (i < 0)
12 return;
13 if(i == 0)
14 x = 11;
15 else
16 x = 1;
18 while(i--) {
19 __smatch_value("x");
20 ar[x] = 1;
24 * check-name: smatch loops #3
25 * check-command: smatch -I.. sm_loops3.c
27 * check-output-start
28 sm_loops3.c +19 func(12) x = 1
29 * check-output-end