add clang
This commit is contained in:
parent
4715742aa8
commit
9a4b261179
890 changed files with 229323 additions and 20 deletions
22
05/tcc-final/tests/tests2/111_conversion.c
Normal file
22
05/tcc-final/tests/tests2/111_conversion.c
Normal file
|
@ -0,0 +1,22 @@
|
|||
#include <stdio.h>
|
||||
|
||||
union u {
|
||||
unsigned long ul;
|
||||
long double ld;
|
||||
};
|
||||
|
||||
void
|
||||
conv (union u *p)
|
||||
{
|
||||
p->ul = (unsigned int) p->ld;
|
||||
}
|
||||
|
||||
int main (void)
|
||||
{
|
||||
union u v;
|
||||
|
||||
v.ld = 42;
|
||||
conv (&v);
|
||||
printf ("%lu\n", v.ul);
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue