permit multiline comments and strings in macros
[bpt/coccinelle.git] / demos / assignment_matching.c
1 int first() {
2 int a = f(3);
3 b = f(3);
4 if (c = f(3)) return 1;
5 if (d = (int)f(3)) return 2;
6 return 0;
7 }
8
9 int second() {
10 int a = g(3);
11 b = g(3);
12 if (c = g(3)) return 1;
13 if (d = (int)g(3)) return 2;
14 return 0;
15 }
16
17 int third() {
18 int a = h(3);
19 b = h(3);
20 if (c = h(3)) return 1;
21 if (d = (int)h(3)) return 2;
22 return 0;
23 }
24
25 int fourth() {
26 int a = i(3);
27 b = i(3);
28 if (c = i(3)) return 1;
29 if (d = (int)i(3)) return 2;
30 return 0;
31 }
32