mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
More casts done, bugs fixed, codegen expanded, correct ordering in codegen, if, label, goto, break, switch, continue, compile time if analysed,
This commit is contained in:
@@ -55,8 +55,13 @@ void compiler_compile()
|
||||
diag_reset();
|
||||
parse_file(file);
|
||||
sema_analysis(current_context);
|
||||
current_context->codegen_output = stdout;
|
||||
FILE *f = fopen("test.c","w");
|
||||
fprintf(f, "#include <stdbool.h>\n#include <stdint.h>\n");
|
||||
current_context->codegen_output = f;
|
||||
codegen(current_context);
|
||||
fclose(f);
|
||||
system("cc test.c && ./a.out");
|
||||
|
||||
}
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user