repo.or.cz
/
tinycc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
riscv: Support $ in identifiers in extended asm.
[tinycc.git]
/
tests
/
tests2
/
111_conversion.c
blob
c0815e1e370282bb2c300d3063f98a05dfef2367
1
#include <stdio.h>
2
3
union
u
{
4
unsigned long
ul
;
5
long double
ld
;
6
};
7
8
void
9
conv
(
union
u
*
p
)
10
{
11
p
->
ul
= (
unsigned int
)
p
->
ld
;
12
}
13
14
int
main
(
void
)
15
{
16
union
u v
;
17
18
v
.
ld
=
42
;
19
conv
(&
v
);
20
printf
(
"%lu
\n
"
,
v
.
ul
);
21
return
0
;
22
}