aboutsummaryrefslogtreecommitdiffhomepage
path: root/test.c
blob: ee2b4d2983920dbbf78681fbb8a2e6c9c74980da (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
/* coment */

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

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

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

int popcnt(unsigned x) {
    int n = 0;
    while (x) x >>= 1, n++;
    return n;
}

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

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


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

//