aboutsummaryrefslogtreecommitdiffhomepage
path: root/test.c
blob: 1d6c01fe6dc68e7a6e0dc2f8ba322a720c845f64 (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
/* 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;};

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);
}

//