diff options
Diffstat (limited to 'libtcc_test.c')
| -rw-r--r-- | libtcc_test.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libtcc_test.c b/libtcc_test.c index 1c87f78..a9c379e 100644 --- a/libtcc_test.c +++ b/libtcc_test.c @@ -44,6 +44,9 @@ int main(int argc, char **argv) exit(1); } + /* MUST BE CALLED before any compilation or file loading */ + tcc_set_output_type(s, TCC_OUTPUT_MEMORY); + tcc_compile_string(s, my_program); /* as a test, we add a symbol that the compiled program can be |
