aboutsummaryrefslogtreecommitdiff
path: root/tests/cc/modules/testscript
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cc/modules/testscript')
-rw-r--r--tests/cc/modules/testscript7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/cc/modules/testscript b/tests/cc/modules/testscript
index c31bacf..b5b94c1 100644
--- a/tests/cc/modules/testscript
+++ b/tests/cc/modules/testscript
@@ -191,14 +191,17 @@ $* test clean <<EOI
: module-marker
:
-: Test leading module marker (module;).
+: Test global module fragment/leading module marker (module;).
:
+cat <<EOI >=g.hxx;
+void g ();
+EOI
cat <<EOI >=core.mxx;
#if __cpp_modules >= 201804
module;
#endif
-void g ();
+#include "g.hxx"
EOI
cat <<<../core.mxx >+core.mxx;
ln -s ../core.cxx ../driver.cxx ./;