HCoop
/
bpt
/
coccinelle.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Release coccinelle-0.1.8
[bpt/coccinelle.git]
/
tests
/
ifdefmeta.res
1
int main() {
2
buf = malloc(3
3
#ifdef PLATFORM_A
4
+ 5 + 50
5
#endif
6
7
#ifdef PLATFORM_B
8
+ 2
9
#endif
10
);
11
buf = malloc(3
12
#ifdef PLATFORM_A
13
+ 5 + 50
14
#endif
15
16
#ifdef PLATFORM_B
17
+ 2
18
#endif
19
);
20
}
21
22
int other() {
23
buf = alloca(3
24
#ifdef PLATFORM_A
25
// platform a stuff
26
+5
27
#endif
28
#ifdef PLATFORM_B
29
/* platform b stuff */
30
+2
31
#endif
32
);
33
buf = alloca(3
34
+5
35
+2
36
);
37
}
38
39
int third() {
40
buf = malloc(3 + 5 + 2);
41
buf = malloc(3 + 5 + 2);
42
}