1 | // RUN: %clang_cc1 %s -triple i686-pc-win32 -fms-extensions -emit-llvm -o - | FileCheck %s |
---|---|
2 | // RUN: %clang_cc1 %s -triple thumbv7-windows -fms-extensions -emit-llvm -o - | FileCheck %s |
3 | |
4 | #pragma detect_mismatch("test", "1") |
5 | |
6 | #define BAR "2" |
7 | #pragma detect_mismatch("test2", BAR) |
8 | |
9 | // CHECK: !llvm.linker.options = !{![[test:[0-9]+]], ![[test2:[0-9]+]]} |
10 | // CHECK: ![[test]] = !{!"/FAILIFMISMATCH:\22test=1\22"} |
11 | // CHECK: ![[test2]] = !{!"/FAILIFMISMATCH:\22test2=2\22"} |
12 |