tccelf.c: write section headers before sections
[tinycc.git] / tests / tests2 / 111_conversion.c
blobc0815e1e370282bb2c300d3063f98a05dfef2367
1 #include <stdio.h>
3 union u {
4 unsigned long ul;
5 long double ld;
6 };
8 void
9 conv (union u *p)
11 p->ul = (unsigned int) p->ld;
14 int main (void)
16 union u v;
18 v.ld = 42;
19 conv (&v);
20 printf ("%lu\n", v.ul);
21 return 0;