permit multiline comments and strings in macros
[bpt/coccinelle.git] / tests / define_param.cocci
CommitLineData
34e49164
C
1
2@ rule2 disable all @
3expression E;
4@@
5
6- (sizeof(E)/sizeof(*E))
7+ ARRAY_SIZE(E)
8
9@ rule53 @
10identifier NUM, x;
11@@
12
13- #define NUM(x) ARRAY_SIZE(x)
14
15@@
16expression E;
17identifier rule53.NUM;
18@@
19
20- NUM(E)
21+ ARRAY_SIZE(E)