summaryrefslogtreecommitdiff
path: root/out.c
diff options
context:
space:
mode:
Diffstat (limited to 'out.c')
-rw-r--r--out.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/out.c b/out.c
index e733d42..a1950de 100644
--- a/out.c
+++ b/out.c
@@ -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())));
}