aboutsummaryrefslogtreecommitdiff
path: root/tests/cc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cc')
-rw-r--r--tests/cc/modules/common.testscript8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/cc/modules/common.testscript b/tests/cc/modules/common.testscript
index 97c5a2b..6eb8853 100644
--- a/tests/cc/modules/common.testscript
+++ b/tests/cc/modules/common.testscript
@@ -28,6 +28,14 @@ using cxx
if ($cxx.id == 'msvc' && $cxx.version.major == 19 && $cxx.version.minor < 12)
cxx.features.modules = false
+# In Clang 9 modules are enabled by default in the c++2a mode and there is
+# no way to disable them. See the following post for details:
+#
+# http://lists.llvm.org/pipermail/cfe-dev/2019-October/063637.html
+#
+if ($cxx.id == 'clang' && $cxx.version.major >= 9)
+ cxx.features.modules = false
+
hxx{*}: extension = hxx
mxx{*}: extension = mxx
cxx{*}: extension = cxx