[LLVM][IR] Use splat syntax when printing ConstantExpr based splats. (#116856)
[llvm-project.git] / clang / test / CodeGen / pragma-detect_mismatch.c
blob145b28572cc78c221603d4df316edd614ced2ac2
1 // RUN: %clang_cc1 %s -triple i686-pc-win32 -fms-extensions -emit-llvm -o - \
2 // RUN: | FileCheck %s
3 // RUN: %clang_cc1 %s -triple thumbv7-windows -fms-extensions -emit-llvm -o - \
4 // RUN: | FileCheck %s
5 // RUN: %clang_cc1 %s -triple amdgcn-amd-amdhsa -fms-extensions -emit-llvm -o \
6 // RUN: - | FileCheck -check-prefix=AMD %s
8 #pragma detect_mismatch("test", "1")
10 #define BAR "2"
11 #pragma detect_mismatch("test2", BAR)
13 // CHECK: !llvm.linker.options = !{![[test:[0-9]+]], ![[test2:[0-9]+]]}
14 // CHECK: ![[test]] = !{!"/FAILIFMISMATCH:\22test=1\22"}
15 // CHECK: ![[test2]] = !{!"/FAILIFMISMATCH:\22test2=2\22"}
16 // AMD-NOT: !llvm.linker.options