The “preprocessor output” test in the modules test suite only tests
compiler behavior, and the string it looks for in the preprocessed
output is different for older and newer Clang versions. It seems like a
kind of a probing call, but I don’t see why we would want to probe the
compiler behavior in this case so I’ll just remove it.
Fixes #601.
echo "-fmodules/-fcxx-modules not supported by compiler"
return
fi
- }
+}
SUITE_modules_SETUP() {
unset CCACHE_NODIRECT
}
SUITE_modules() {
- # -------------------------------------------------------------------------
- TEST "preprocessor output"
- $COMPILER -fmodules -fcxx-modules test1.cpp -E > test1.preprocessed.cpp
- expect_file_contains "test1.preprocessed.cpp" "#pragma clang module import Test1"
-
# -------------------------------------------------------------------------
TEST "fall back to real compiler, no sloppiness"