aboutsummaryrefslogtreecommitdiff
path: root/libtcc_test.c
diff options
context:
space:
mode:
authorbellard <bellard>2002-08-18 13:24:19 +0000
committerbellard <bellard>2002-08-18 13:24:19 +0000
commit796866862f43c7f96d5356a8f30f4c5118f03302 (patch)
tree53850b77731405225d006c08e051adfe738055c1 /libtcc_test.c
parentf5b9220b60b353494bb137c095ae55ffb6d01db5 (diff)
downloadtinycc-796866862f43c7f96d5356a8f30f4c5118f03302.tar.gz
tinycc-796866862f43c7f96d5356a8f30f4c5118f03302.tar.bz2
updated
Diffstat (limited to 'libtcc_test.c')
-rw-r--r--libtcc_test.c3
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