aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/test4.c
blob: 12d9ca4acba82309c5e25b642c9562866387bb7d (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
int xor(int a) {
   return a ^ 3 | 233333;
}

int cmp(float x, float y) {
   return x < y && x > 0.f;
}

struct foo {
   int x : 10;
   unsigned y : 7;
   short k:3;
int : 0;
   short a:15;
};

int bitf(struct foo q) {
   return q.x + q.y - q.k + q.a;
}

int main() {
   int x = 42,
       *a = &x,
       **b = &a,
       ***c = &b,
       ****d = &c,
       *****e = &d,
       ******f = &e;
   return ******f;
}