From f1b4ffa568c91302057da14e611368dcf9244953 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 9 Nov 2023 08:21:42 +0200 Subject: Enable named modules tests for Clang 16 or later (but not on Windows) --- tests/cc/modules/common.testscript | 9 ++++++--- tests/cc/modules/modules.testscript | 4 +--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/tests/cc/modules/common.testscript b/tests/cc/modules/common.testscript index 50dc865..2aa19d1 100644 --- a/tests/cc/modules/common.testscript +++ b/tests/cc/modules/common.testscript @@ -21,7 +21,8 @@ cxx.std = experimental cxx.features.symexport = true # @@ TMP revise -if ($cxx.id == 'gcc') +if ($cxx.id == 'gcc' || \ + ($cxx.id.type == 'clang' && $cxx.version.major >= 16)) cxx.features.modules = true using cxx @@ -38,7 +39,7 @@ if ($cxx.target.class == 'windows') exe{*}: test = true EOI -# Determine if we have modules and header units support. +# Determine if we have named modules and header units support. # +$* noop <=g.hxx; void g (); EOI cat <=core.mxx; -#if __cpp_modules >= 201810 module; -#endif #include "g.hxx" EOI -- cgit v1.1