summaryrefslogtreecommitdiff
path: root/internal-tests.c
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <ssp@redhat.com>2012-06-15 10:33:58 -0400
committerSøren Sandmann Pedersen <ssp@redhat.com>2012-06-15 10:33:58 -0400
commit162ffd529a3316416b91f8c1db92fbea93b027fe (patch)
treeabaa08aa5865901f5b2b05f393e03b40df8d0738 /internal-tests.c
parenta109f716fd8c002a3b5f1d4dd04050faed91d218 (diff)
Do debug spew from within compile().
Dump the goto graph after optimization if debug_spew is turned on.
Diffstat (limited to 'internal-tests.c')
-rw-r--r--internal-tests.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal-tests.c b/internal-tests.c
index e91de00..b027fef 100644
--- a/internal-tests.c
+++ b/internal-tests.c
@@ -25,7 +25,7 @@ interp (const char *data)
{
ast_t *ast;
- if ((ast = compile (data, TRUE)))
+ if ((ast = compile (data, TRUE, TRUE)))
interpret (ast);
}
@@ -34,7 +34,7 @@ dump (const char *data)
{
ast_t *ast;
- if ((ast = compile (data, TRUE)))
+ if ((ast = compile (data, TRUE, TRUE)))
dump_program (&ast->program);
}