aboutsummaryrefslogtreecommitdiff
path: root/tests/cc
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-06-24 11:43:45 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-06-24 11:43:45 +0200
commit1958b829f22e3b69d4c4c23662e0d1c7c4d2e62b (patch)
treefb94b1cba0d34e9b4cc6e1834495a9bd1e62a289 /tests/cc
parentff8ed209cd80799199e0b2e3d37213d549bc342f (diff)
Make VC compatible with 'export module M;' by fixing up preprocessed output
Diffstat (limited to 'tests/cc')
-rw-r--r--tests/cc/modules/testscript11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/cc/modules/testscript b/tests/cc/modules/testscript
index a65bdac..d35de50 100644
--- a/tests/cc/modules/testscript
+++ b/tests/cc/modules/testscript
@@ -345,3 +345,14 @@ $* test clean <<EOI
exe{test}: cxx{driver} lib{foo}
lib{foo}: mxx{core} cxx{core-f} # core-g @@ VC
EOI
+
+: export-fixup
+:
+: Test removing the export keyword for VC compatibility.
+:
+ln -s ../core.cxx ../driver.cxx ./;
+cat <<EOI >=core.mxx;
+ export module foo.core;
+ export int f (int);
+ EOI
+$* test clean <'exe{test}: cxx{driver core} mxx{core}'