aboutsummaryrefslogtreecommitdiff
path: root/tests/cc/modules
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cc/modules')
-rw-r--r--tests/cc/modules/testscript17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/cc/modules/testscript b/tests/cc/modules/testscript
index 61cebc1..4401bfd 100644
--- a/tests/cc/modules/testscript
+++ b/tests/cc/modules/testscript
@@ -189,6 +189,23 @@ $* test clean <<EOI
lib{foo}: {mxx cxx}{core}
EOI
+: module-marker
+:
+: Test leading module marker (module;).
+:
+cat <<EOI >=core.mxx;
+#if __cpp_modules >= 201804
+module;
+#endif
+
+void g ();
+EOI
+cat <<<../core.mxx >+core.mxx;
+ln -s ../core.cxx ../driver.cxx ./;
+$* test clean <<EOI
+ exe{test}: cxx{driver} {mxx cxx}{core}
+ EOI
+
: re-export
:
: Test module re-exporting (export import M;)