summaryrefslogtreecommitdiff
path: root/out.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2019-10-20 18:11:38 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2019-10-20 21:58:48 -0400
commitae678189f55bff795e538b805e606934e496e793 (patch)
treefa04429ab0d5d51edbdf8ed161e13f2d99c0afd2 /out.c
parent89f00af3cf25d594f10aebaa7048a17bdd520c4b (diff)
started fixing compile time new
fixing eval ...
Diffstat (limited to 'out.c')
-rw-r--r--out.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/out.c b/out.c
index d165db8..31f95d2 100644
--- a/out.c
+++ b/out.c
@@ -17,7 +17,7 @@ typedef struct { void *data; u64 n; } slice_;
/* declarations */
-void puti(i64 x);
+i64 foo(void);
void main__(void);
/* code */
int main() {
@@ -25,17 +25,20 @@ int main() {
return 0;
}
-void puti(i64 x) {
+i64 foo(void) {
{
- }}
+ i64 i; {
+ i64 expr__; expr__ = 0;i = expr__;}
+ while ((i<100)) {
+ i = (i+1);;
+ };
+ }return i;
+}
void main__(void) {
{
- i64((* Ar)[5]); {
- i64((* expr__)[5]); expr__ = ((i64((*)[5]))calloc(1, sizeof(i64([5]))));Ar = expr__;}
- slice_ A; {
- slice_ expr__; slice_ a0_; a0_.data = calloc(100, sizeof(i64)); a0_.n = 100;expr__ = a0_;A = expr__;}
+ i64( Ar[1]) = {0};
}}