diff options
Diffstat (limited to 'mu.arc.t')
-rw-r--r-- | mu.arc.t | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mu.arc.t b/mu.arc.t index 6e8a0ad7..57e806d9 100644 --- a/mu.arc.t +++ b/mu.arc.t @@ -1443,4 +1443,18 @@ ((default-scope integer) <- add (1 integer) (2 integer)))) (prn "F - convert-names never renames default-scope")) +(reset) +(new-trace "suppress-default-scope") +(add-fns + '((main + ((default-scope scope-address) <- new (scope literal) (2 literal)) + ((1 integer global) <- copy (23 literal))))) +(let before Memory-in-use-until +;? (set dump-trace*) + (run 'main) +;? (prn memory*) + (if (~and (is 23 memory*.1) + (~is 23 (memory* (+ before 1)))) + (prn "F - default-scope skipped for locations with metadata 'global'"))) + (reset) ; end file with this to persist the trace for the final test |