Fix float to long long conversion on ARM
[tinycc.git] / tests / tests2 / 03_struct.c
blobc5d48c5abc589826848109466baa935da0d16e54
1 #include <stdio.h>
3 struct fred
5 int boris;
6 int natasha;
7 };
9 int main()
11 struct fred bloggs;
13 bloggs.boris = 12;
14 bloggs.natasha = 34;
16 printf("%d\n", bloggs.boris);
17 printf("%d\n", bloggs.natasha);
19 struct fred jones[2];
20 jones[0].boris = 12;
21 jones[0].natasha = 34;
22 jones[1].boris = 56;
23 jones[1].natasha = 78;
25 printf("%d\n", jones[0].boris);
26 printf("%d\n", jones[0].natasha);
27 printf("%d\n", jones[1].boris);
28 printf("%d\n", jones[1].natasha);
30 return 0;