From 9054e7e2fd59e2222258e2dce3a3300c8d16fb05 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 19 May 2020 14:46:07 +0300 Subject: Make build script parser unit test compilable --- libbuild2/build/script/parser.test.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libbuild2/build/script/parser.test.cxx b/libbuild2/build/script/parser.test.cxx index 77f6596..705fd9d 100644 --- a/libbuild2/build/script/parser.test.cxx +++ b/libbuild2/build/script/parser.test.cxx @@ -125,11 +125,9 @@ namespace build2 // Parse and run. // - path_name nm ("buildfile"); - - script s; parser p (ctx); - p.pre_parse (cin, nm, 11 /* line */, s); + path_name nm ("buildfile"); + script s (p.pre_parse (cin, nm, 11 /* line */)); if (!dump) { -- cgit v1.1