3 // RUN: split-file %s %t
5 // RUN: %clang_cc1 -std=c++20 -triple x86_64-pc-windows-msvc19.11.0 -fms-extensions %t/mod.cppm -emit-module-interface \
7 // RUN: %clang_cc1 -std=c++20 -triple x86_64-pc-windows-msvc19.11.0 -fms-extensions %t/mod.pcm -S -emit-llvm -o - | \
8 // RUN: FileCheck %t/mod.cppm
9 // RUN: %clang_cc1 -std=c++20 -triple x86_64-pc-windows-msvc19.11.0 -fms-extensions %t/user.cpp -fmodule-file=mod=%t/mod.pcm \
10 // RUN: -S -emit-llvm -o - | FileCheck %t/user.cpp
15 #pragma comment(lib, "msvcprt.lib")
16 #pragma detect_mismatch("myLib_version", "9")
20 // CHECK: ![[NUM:[0-9]+]] ={{.*}}msvcprt.lib
21 // CHECK: ![[NUM:[0-9]+]] ={{.*}}FAILIFMISMATCH{{.*}}myLib_version=9
24 #pragma detect_mismatch("myLib_version", "1")
27 // CHECK: ![[NUM:[0-9]+]] ={{.*}}FAILIFMISMATCH{{.*}}myLib_version=1
28 // CHECK: ![[NUM:[0-9]+]] ={{.*}}msvcprt.lib
29 // CHECK: ![[NUM:[0-9]+]] ={{.*}}FAILIFMISMATCH{{.*}}myLib_version=9