~ubuntu-branches/ubuntu/lucid/gauche-c-wrapper/lucid

« back to all changes in this revision

Viewing changes to testsuite/gcc_extension.c

  • Committer: Bazaar Package Importer
  • Author(s): NIIBE Yutaka
  • Date: 2008-04-07 09:15:03 UTC
  • Revision ID: james.westby@ubuntu.com-20080407091503-wu0h414koe95kj4i
Tags: upstream-0.5.2
ImportĀ upstreamĀ versionĀ 0.5.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "gcc_extension.h"
 
2
 
 
3
void inc_foo(struct foo *v, int mode)
 
4
{
 
5
    ++(v->a);
 
6
    switch (mode) {
 
7
    case FLOAT_MODE:
 
8
        ++(v->b);
 
9
        break;
 
10
    case STRUCT_MODE:
 
11
        ++(v->c);
 
12
        ++(v->d);
 
13
        break;
 
14
    default:
 
15
        break;
 
16
    }
 
17
    ++(v->e);
 
18
    ++(v->f);
 
19
    ++(v->g);
 
20
}