aboutsummaryrefslogtreecommitdiff
path: root/unit-tests/cc
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-06-16 13:20:00 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-06-16 13:20:00 +0200
commitd3e40f931e65fcd86801630edd694e1a9a210ac4 (patch)
tree4e3237951444c34d5730db1ce7ef92807683cefc /unit-tests/cc
parentfc8c0e410697928d644f06dea772b51c3abc0e3f (diff)
Store module information in depdb
Diffstat (limited to 'unit-tests/cc')
-rw-r--r--unit-tests/cc/parser/driver.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/unit-tests/cc/parser/driver.cxx b/unit-tests/cc/parser/driver.cxx
index 5798d9f..ec346d3 100644
--- a/unit-tests/cc/parser/driver.cxx
+++ b/unit-tests/cc/parser/driver.cxx
@@ -45,13 +45,13 @@ namespace build2
parser p;
translation_unit u (p.parse (*is, path (in)));
- for (const module_import& m: u.module_imports)
+ for (const module_import& m: u.mod.imports)
cout << (m.exported ? "export " : "")
<< "import " << m.name << ';' << endl;
- if (!u.module_name.empty ())
- cout << (u.module_interface ? "export " : "")
- << "module " << u.module_name << ';' << endl;
+ if (!u.mod.name.empty ())
+ cout << (u.mod.iface ? "export " : "")
+ << "module " << u.mod.name << ';' << endl;
}
catch (const failed&)
{