diff options
Diffstat (limited to 'libbuild2/function.test.cxx')
-rw-r--r-- | libbuild2/function.test.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libbuild2/function.test.cxx b/libbuild2/function.test.cxx index f711d2f..37ed5ff 100644 --- a/libbuild2/function.test.cxx +++ b/libbuild2/function.test.cxx @@ -115,7 +115,7 @@ namespace build2 else if (!a.empty ()) { names storage; - cout << reverse (a, storage); + cout << reverse (a, storage, true /* reduce */); } cout << endl; } @@ -124,7 +124,9 @@ namespace build2 try { - scope& s (ctx.global_scope.rw ()); + // Use temp scope for the private variable pool. + // + temp_scope s (ctx.global_scope.rw ()); parser p (ctx); p.parse_buildfile (cin, path_name ("buildfile"), &s, s); |