You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
648 B
17 lines
648 B
// RUN: %clang_cc1 %s -triple i686-pc-win32 -fms-extensions -emit-llvm -o - \
|
|
// RUN: | FileCheck %s
|
|
// RUN: %clang_cc1 %s -triple thumbv7-windows -fms-extensions -emit-llvm -o - \
|
|
// RUN: | FileCheck %s
|
|
// RUN: %clang_cc1 %s -triple amdgcn-amd-amdhsa -fms-extensions -emit-llvm -o \
|
|
// RUN: - | FileCheck -check-prefix=AMD %s
|
|
|
|
#pragma detect_mismatch("test", "1")
|
|
|
|
#define BAR "2"
|
|
#pragma detect_mismatch("test2", BAR)
|
|
|
|
// CHECK: !llvm.linker.options = !{![[test:[0-9]+]], ![[test2:[0-9]+]]}
|
|
// CHECK: ![[test]] = !{!"/FAILIFMISMATCH:\22test=1\22"}
|
|
// CHECK: ![[test2]] = !{!"/FAILIFMISMATCH:\22test2=2\22"}
|
|
// AMD-NOT: !llvm.linker.options
|