aboutsummaryrefslogtreecommitdiff
path: root/tests/cc
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-04-11 10:03:44 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-04-11 10:03:44 +0200
commited024f5c4e42bf1bc32d5721c83b990987b3aa74 (patch)
tree6bd775c4a69c604c150f696ff55ab2a8f1cf5301 /tests/cc
parent9bd1a1619e282c585b3f202d84790f8811d1e4d6 (diff)
Sync up with latest C++ modules support in GCC
Diffstat (limited to 'tests/cc')
-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 ./;