2016-06-23 21:45:33 +08:00
|
|
|
// RUN: %clang_cc1 %s --dependent-lib=msvcrt -triple thumbv7-windows -emit-llvm -o - | FileCheck %s
|
2013-08-08 08:17:41 +08:00
|
|
|
// RUN: %clang_cc1 %s --dependent-lib=msvcrt -triple i686-pc-win32 -emit-llvm -o - | FileCheck %s
|
|
|
|
// RUN: %clang_cc1 %s --dependent-lib=msvcrt -triple x86_64-pc-win32 -emit-llvm -o - | FileCheck %s
|
|
|
|
// RUN: %clang_cc1 %s --dependent-lib=msvcrt -triple i686-pc-linux -emit-llvm -o - | FileCheck -check-prefix LINUX %s
|
|
|
|
|
2017-06-13 04:10:48 +08:00
|
|
|
// CHECK: !llvm.linker.options = !{![[msvcrt:[0-9]+]]}
|
2014-12-16 03:10:08 +08:00
|
|
|
// CHECK: ![[msvcrt]] = !{!"/DEFAULTLIB:msvcrt.lib"}
|
2013-08-08 08:17:41 +08:00
|
|
|
|
2017-06-13 04:10:48 +08:00
|
|
|
// LINUX: !llvm.linker.options = !{![[msvcrt:[0-9]+]]}
|
2014-12-16 03:10:08 +08:00
|
|
|
// LINUX: ![[msvcrt]] = !{!"-lmsvcrt"}
|
2013-08-08 08:17:41 +08:00
|
|
|
|
|
|
|
int f();
|