brintos

brintos / llvm-project-archived public Read only

0
0
Text · 648 B · 145b285 Raw
17 lines · c
1// RUN: %clang_cc1 %s -triple i686-pc-win32 -fms-extensions -emit-llvm -o - \2// RUN:   | FileCheck %s3// RUN: %clang_cc1 %s -triple thumbv7-windows -fms-extensions -emit-llvm -o - \4// RUN:   | FileCheck %s5// RUN: %clang_cc1 %s -triple amdgcn-amd-amdhsa -fms-extensions -emit-llvm -o \6// RUN:   - | FileCheck -check-prefix=AMD %s7 8#pragma detect_mismatch("test", "1")9 10#define BAR "2"11#pragma detect_mismatch("test2", BAR)12 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.options17