diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2019-10-15 13:22:59 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2019-10-15 13:22:59 -0400 |
commit | 5521461a61b55124cee90e1bfcc946b1a029570f (patch) | |
tree | bfc3ef9cc3c3cf8e0e50b69f73c8a716d4188ec3 /out.c | |
parent | c3ca8aec22cae9011fbd3a718e969634876fa858 (diff) |
more out params, fixed anon fns
Diffstat (limited to 'out.c')
-rw-r--r-- | out.c | 26 |
1 files changed, 23 insertions, 3 deletions
@@ -20,6 +20,7 @@ i64 puti(i64 i); void dbl(i64((* x)[3])); i64 foo(void); void main__(void); + void a0_(void); /* code */ int main() { main__(); @@ -27,28 +28,47 @@ int main() { } i64 puti(i64 i) { + { printf("%ld\n", i); -} +}} + void dbl(i64((* x)[3])) { + { ((*x)[0]) = (((*x)[0])*2);; ((*x)[1]) = (((*x)[1])*2);; ((*x)[2]) = (((*x)[2])*2);; -} +}} + i64 foo(void) { +i64 a = 0; + { a = 3;; if (true) { a = 4;; } else if (false) { a = (17+(1/0));; }; +}return a; } + void main__(void) { + { i64( a[3]) = {0}; (a[0]) = 1;; + (a[0]) = 5;(a[1]) = (8+(a[0]));; (dbl((&a))); + void (* asdfnahsdf)(void); { + void (* expr__)(void); expr__ = a0_;asdfnahsdf = expr__;} (puti((a[0]))); -} + (puti((foo()))); +}} + + +void a0_(void) { + { +}} + |