diff options
Diffstat (limited to 'unit-tests/cc')
-rw-r--r-- | unit-tests/cc/parser/driver.cxx | 8 |
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&) { |