about summary refs log tree commit diff stats
path: root/081run_interactive.cc
diff options
context:
space:
mode:
Diffstat (limited to '081run_interactive.cc')
-rw-r--r--081run_interactive.cc11
1 files changed, 10 insertions, 1 deletions
diff --git a/081run_interactive.cc b/081run_interactive.cc
index b4b2bc8d..67fba6e3 100644
--- a/081run_interactive.cc
+++ b/081run_interactive.cc
@@ -126,6 +126,15 @@ add 2, 2]
 ]
 +mem: storing 52 in location 4
 
+:(scenario run_interactive_just_comments_without_trace)
+recipe main [
+  $close-trace
+  1:address:array:character <- new [# ab
+]
+  2:address:array:character <- run-interactive 1:address:array:character
+  3:array:character <- copy *2:address:array:character
+]
+
 :(before "End Primitive Recipe Declarations")
 _START_TRACKING_PRODUCTS,
 :(before "End Primitive Recipe Numbers")
@@ -181,7 +190,7 @@ case _CLEANUP_RUN_INTERACTIVE: {
 :(code)
 void cleanup_run_interactive() {
   Hide_warnings = false;
-  if (Trace_stream->is_narrowly_collecting("warn")) {  // hack
+  if (Trace_stream && Trace_stream->is_narrowly_collecting("warn")) {  // hack
     delete Trace_stream;
     Trace_stream = NULL;
   }