aboutsummaryrefslogtreecommitdiff
path: root/tests/cc
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-07-24 10:45:08 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-07-24 10:45:08 +0200
commitb95ea0797359b19d2dc34612761d8e7b63d41e68 (patch)
tree5ba1d15fa41cf74457351a76f592caaf69d3e9a0 /tests/cc
parent0d5196c1186832219e91955cde4f8fe5c01dfe26 (diff)
Handle leading 'module;' marker (p0713)
Diffstat (limited to 'tests/cc')
-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;)