3 // RUN: split-file %s %t
4 // RUN: mkdir -p %t/prebuilt_modules
6 // RUN: %clang_cc1 -triple %itanium_abi_triple \
7 // RUN: -std=c++20 -fprebuilt-module-path=%t/prebuilt-modules \
8 // RUN: -emit-module-interface -pthread -DBUILD_MODULE \
9 // RUN: %t/mismatching_module.cppm -o \
10 // RUN: %t/prebuilt_modules/mismatching_module.pcm
12 // RUN: not %clang_cc1 -triple %itanium_abi_triple -std=c++20 \
13 // RUN: -fprebuilt-module-path=%t/prebuilt_modules -DCHECK_MISMATCH \
14 // RUN: %t/use.cpp 2>&1 | FileCheck %s
16 //--- mismatching_module.cppm
17 export module mismatching_module
;
20 import mismatching_module
;
21 // CHECK: error: POSIX thread support was enabled in PCH file but is currently disabled
22 // CHECK-NEXT: module file {{.*[/|\\\\]}}mismatching_module.pcm cannot be loaded due to a configuration mismatch with the current compilation