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

« back to all changes in this revision

Viewing changes to testsuite/gcc_extension.h

  • 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
/*
 
2
  Unnamed struct/union fields within structs/unions
 
3
*/
 
4
 
 
5
struct foo {
 
6
    int a;
 
7
    union {
 
8
        float b;
 
9
        struct {
 
10
            int c;
 
11
            double d;
 
12
        };
 
13
    };
 
14
    int e;
 
15
    struct {
 
16
        int f;
 
17
        double g;
 
18
    };
 
19
};
 
20
 
 
21
#define FLOAT_MODE 1
 
22
#define STRUCT_MODE 2
 
23
 
 
24
extern void inc_foo(struct foo *v, int mode);