aboutsummaryrefslogtreecommitdiffhomepage
path: root/test.c
blob: 333114a6ccb309ea3bf707a3808fe4b23c2ab4f7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/* coment */

#if 1+1 < (-2*'a')
wawa
#elif 9<<1
#define wow 3
#else
boop
#endif

#define NULL ((void *)0)
int glob [ wow+wow];

struct foo {
    int x, y, z;
};

struct v2f { double x, y; };
struct big { int x[10]; };

struct v2f add(struct v2f a, struct v2f b, struct big B, struct { char c; } small, void *prt) {
    struct v2f r;
    r.y = a.y + b.y;
    return r;
}

struct pair {
    long x, y;
};

struct pair pair(long x, long y) {
    struct pair p;
    p.x = x;
    p.y = y;
    return p;
}

struct quad {
    long x, y, z, w;
};

struct quad quad(long x, long y, long z, long w) {
    struct quad q;
    q.x = x, q.y = y, q.z = z, q.w = w;
    return q;
}


//