From a14b9bc18431c6aed8441261d28b6ff20bd25935 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 11 Apr 2019 14:44:32 +0200 Subject: Initial take on header unit and include translation support --- tests/cc/modules/common.testscript | 49 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 tests/cc/modules/common.testscript (limited to 'tests/cc/modules/common.testscript') diff --git a/tests/cc/modules/common.testscript b/tests/cc/modules/common.testscript new file mode 100644 index 0000000..4f043c9 --- /dev/null +++ b/tests/cc/modules/common.testscript @@ -0,0 +1,49 @@ +# file : tests/cc/modules/common.testscript +# copyright : Copyright (c) 2014-2019 Code Synthesis Ltd +# license : MIT; see accompanying LICENSE file + +crosstest = false +test.arguments = config.cxx="$recall($cxx.path)" + +.include ../../common.testscript + ++cat <+build/bootstrap.build +using test +EOI + ++cat <=build/root.build +cxx.std = experimental + +cxx.features.symexport = true + +# Force modules. +# +cxx.features.modules = true + +using cxx + +# We forced modules but for VC we need at least 15u5 (19.12). So "unforce" +# them in this case. +# +if ($cxx.id == 'msvc' && $cxx.version.major == 19 && $cxx.version.minor < 12) + cxx.features.modules = false + +hxx{*}: extension = hxx +mxx{*}: extension = mxx +cxx{*}: extension = cxx + +if ($cxx.target.class == 'windows') + bmis{*}: cxx.poptions += '-DLIBFOO_EXPORT=__declspec(dllexport)' + +exe{*}: test = true +EOI + +# Determine if we have modules and header units support. +# ++$* noop <