Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git] / sdcc / support / regression / tcc / 10_pointer.c
blob0f48ea3c03f213e6d993a05bf366c7e949eef8a3
1 #include <stdio.h>
3 struct ziggy
5 int a;
6 int b;
7 int c;
8 } bolshevic;
10 int main(void)
12 int a;
13 int *b;
15 a = 42;
16 b = &a;
17 printf("a = %d\n", *b);
19 bolshevic.a = 12;
20 bolshevic.b = 34;
21 bolshevic.c = 56;
23 printf("bolshevic.a = %d\n", bolshevic.a);
24 printf("bolshevic.b = %d\n", bolshevic.b);
25 printf("bolshevic.c = %d\n", bolshevic.c);
27 struct ziggy *tsar = &bolshevic;
29 printf("tsar->a = %d\n", tsar->a);
30 printf("tsar->b = %d\n", tsar->b);
31 printf("tsar->c = %d\n", tsar->c);
33 b = &(bolshevic.b);
34 printf("bolshevic.b = %d\n", *b);
36 return 0;
39 // vim: set expandtab ts=4 sw=3 sts=3 tw=80 :