aboutsummaryrefslogtreecommitdiffhomepage
path: root/test.c
blob: 9a3aafb34877be6da299c031c8987bf9911b7886 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/* coment */

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

int add (int x, int y) {
    return x + y + *glob;
}

struct foo {
    struct foo *foo;
    struct n0 {
        char z;
        struct n1 {
            char q;
            struct n2 {
                int ww;
            } n2;
        } n1;
    } n0;
    union {
        struct { short x, y; };
        int xy;
    };
    char flex[];
};

int foop(struct foo *foo) {
    if (foo->foo) foo = foo->foo;
    ++foo->n0.n1.n2.ww;
    int xy = (*foo).xy;
    foo->flex[2] *= 5;
    if (foo->x)return xy; else return foo->y;
}

int abs(int x){
    return (x ^ x >> 3\
1) - (x >> 31);
}

int popcnt(unsigned x) {
    int n = 0;
    while (x) x >>= 1, n++;
    return n + sizeof "ab\r\
c";
}

struct f {
    char x[(1<<12)-1];
};

int diff(struct f *x, struct f *y)
{
    x += 3;
    --x;
    return x - y;
}

_Bool narrow(int x)
{
    return (float) x;
}

#define xx 2

int waaa[xx == 0 ?  'Z'
        : xx == 1? 'O'
        : xx == 2? 'T'
        : '?'];

extern int printf(char *, ...);
int main() {
    unsigned char x = 255;
    int k = x += 1;
    1+waaa;
    return abs(k);
}

//