~ubuntu-branches/ubuntu/karmic/coccinelle/karmic

« back to all changes in this revision

Viewing changes to tests/ifdefmeta.c

  • Committer: Bazaar Package Importer
  • Author(s): Євгеній Мещеряков
  • Date: 2009-05-11 15:32:24 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090511153224-1odv41d4dkr3y80v
Tags: 0.1.8.deb-2
Use common install Makefile target for both native and bytecode
build. This hopefully fixes FTBFS on bytecode archs 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
int main() {
 
2
    buf = alloca(3
 
3
    #ifdef PLATFORM_A
 
4
// platform a stuff
 
5
                    +5
 
6
                    +50
 
7
    #endif
 
8
    #ifdef PLATFORM_B
 
9
/* platform b stuff */
 
10
                    +2
 
11
    #endif
 
12
            );
 
13
    buf = alloca(3
 
14
    #ifdef PLATFORM_A
 
15
// platform a stuff
 
16
                    +5
 
17
                    +50
 
18
    #endif
 
19
    #ifdef PLATFORM_B
 
20
/* platform b stuff */
 
21
                    +2
 
22
    #endif
 
23
            );
 
24
}
 
25
 
 
26
int other() {
 
27
    buf = alloca(3
 
28
    #ifdef PLATFORM_A
 
29
// platform a stuff
 
30
                    +5
 
31
    #endif
 
32
    #ifdef PLATFORM_B
 
33
/* platform b stuff */
 
34
                    +2
 
35
    #endif
 
36
            );
 
37
    buf = alloca(3
 
38
                    +5
 
39
                    +2
 
40
            );
 
41
}
 
42
 
 
43
int third() {
 
44
    buf = alloca(3+5+2);
 
45
    buf = alloca(3
 
46
                    +5
 
47
                    +2
 
48
            );
 
49
}