diff options
Diffstat (limited to 'out.c')
-rw-r--r-- | out.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -19,6 +19,7 @@ static slice_ mkslice_(void *data, u64 n) { slice_ ret; ret.data = data; ret.n = /* declarations */ void puti(i64 x); +void putf(f32 x); i64 foo(void); void main__(void); /* code */ @@ -35,6 +36,12 @@ void puti(i64 x) { } +void putf(f32 x) { + + printf("%f\n", (double)x); +} + + i64 foo(void) { i64 N; { @@ -56,6 +63,10 @@ i64 foo(void) { void main__(void) { + i64 N = 5; + (puti(N)); + f32 M = 1.4320000410079956; + (putf(M)); i64( x[11]) = {0}; (puti((foo()))); } |