Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git] / sdcc / support / regression / tcc / 03_struct.c
blobfd7313383007767536256c1a2289fe77cb6db89e
1 extern int printf(const char*, ...);
3 struct fred;
5 void fred$(struct fred* this)
7 printf("~fred()\n");
10 struct __attribute__((__cleanup__(fred$))) fred
12 int boris;
13 int natasha;
16 int main()
18 struct fred __attribute__((__cleanup__(fred$))) bloggs;
20 bloggs.boris = 12;
21 bloggs.natasha = 34;
23 printf("%d\n", bloggs.boris);
24 printf("%d\n", bloggs.natasha);
26 struct fred jones[2];
27 jones[0].boris = 12;
28 jones[0].natasha = 34;
29 jones[1].boris = 56;
30 jones[1].natasha = 78;
32 printf("%d\n", jones[0].boris);
33 printf("%d\n", jones[0].natasha);
34 printf("%d\n", jones[1].boris);
35 printf("%d\n", jones[1].natasha);
37 return 0;