aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cc/parser+module.test.testscript
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-06-07 11:55:09 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-06-07 11:55:09 +0200
commit274d65d2a76ed48cb618e25e0916e20ba3d5c87b (patch)
treea172075cfcfea41488bad95066f77c8085030ae8 /libbuild2/cc/parser+module.test.testscript
parente3a05597ec42ed02230918fe0bcada3dbb521209 (diff)
Strip partition part from module name when forming imported partition name
Diffstat (limited to 'libbuild2/cc/parser+module.test.testscript')
-rw-r--r--libbuild2/cc/parser+module.test.testscript10
1 files changed, 10 insertions, 0 deletions
diff --git a/libbuild2/cc/parser+module.test.testscript b/libbuild2/cc/parser+module.test.testscript
index 91cbe45..6935f5e 100644
--- a/libbuild2/cc/parser+module.test.testscript
+++ b/libbuild2/cc/parser+module.test.testscript
@@ -59,6 +59,16 @@ import foo:part;
import foo:part.sub;
EOO
+: import-part-from-part
+:
+$* <<EOI >>EOO
+module foo:part;
+import :part.sub;
+EOI
+module foo:part;
+import foo:part.sub;
+EOO
+
: export-imported
:
$* <<EOI >>EOO