mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-24 14:05:49 -04:00

The new metadata is easier to manipulate than module flags. Differential Revision: https://reviews.llvm.org/D31349 llvm-svn: 305227
12 lines
466 B
C
12 lines
466 B
C
// RUN: %clang_cc1 %s -triple i686-pc-win32 -fms-extensions -emit-llvm -o - | FileCheck %s
|
|
// RUN: %clang_cc1 %s -triple thumbv7-windows -fms-extensions -emit-llvm -o - | FileCheck %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"}
|