summaryrefslogtreecommitdiff
path: root/tests/bf
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bf')
-rw-r--r--tests/bf/bf.toc2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/bf/bf.toc b/tests/bf/bf.toc
index b624101..c2f9970 100644
--- a/tests/bf/bf.toc
+++ b/tests/bf/bf.toc
@@ -32,10 +32,12 @@ getstdin ::= fn() []char {
};
puti ::= fn(x: int) {
+ #C("extern int printf(const char *fmt, ...)");
#C("printf(\"%ld\\n\", x)");
};
main ::= fn() {
+ #C("extern int putchar(int c)");
code := getstdin();
tape_sz := 3;
tape := new(int, tape_sz);