aboutsummaryrefslogtreecommitdiff
path: root/unit-tests/cc/parser/driver.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-06-14 13:06:38 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-06-14 13:06:38 +0200
commit57abb0703ec640fdcd0b0ac165f742bbc34df533 (patch)
treeec0fc9b3f23b2ed34e354978788384ee08be8035 /unit-tests/cc/parser/driver.cxx
parent700f2e7c4be9c8caa0ac0fcd58b1a0ce505e33fa (diff)
Next installment in C++ modules saga: module search, re-export support
Diffstat (limited to 'unit-tests/cc/parser/driver.cxx')
-rw-r--r--unit-tests/cc/parser/driver.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/unit-tests/cc/parser/driver.cxx b/unit-tests/cc/parser/driver.cxx
index cdddaca..5798d9f 100644
--- a/unit-tests/cc/parser/driver.cxx
+++ b/unit-tests/cc/parser/driver.cxx
@@ -45,8 +45,9 @@ namespace build2
parser p;
translation_unit u (p.parse (*is, path (in)));
- for (const string& n: u.module_imports)
- cout << "import " << n << ';' << endl;
+ for (const module_import& m: u.module_imports)
+ cout << (m.exported ? "export " : "")
+ << "import " << m.name << ';' << endl;
if (!u.module_name.empty ())
cout << (u.module_interface ? "export " : "")