2014-10-27 20:37:26 +08:00
|
|
|
// RUN: %clang_cc1 %s -triple i686-pc-win32 -fms-extensions -emit-llvm -o - | FileCheck %s
|
2016-06-23 21:45:33 +08:00
|
|
|
// RUN: %clang_cc1 %s -triple thumbv7-windows -fms-extensions -emit-llvm -o - | FileCheck %s
|
2014-10-27 20:37:26 +08:00
|
|
|
|
|
|
|
#pragma detect_mismatch("test", "1")
|
|
|
|
|
|
|
|
#define BAR "2"
|
|
|
|
#pragma detect_mismatch("test2", BAR)
|
|
|
|
|
2017-06-13 04:10:48 +08:00
|
|
|
// CHECK: !llvm.linker.options = !{![[test:[0-9]+]], ![[test2:[0-9]+]]}
|
2014-12-16 03:10:08 +08:00
|
|
|
// CHECK: ![[test]] = !{!"/FAILIFMISMATCH:\22test=1\22"}
|
|
|
|
// CHECK: ![[test2]] = !{!"/FAILIFMISMATCH:\22test2=2\22"}
|