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