From d989a56b3ceb47d6de82d0005d3f20a48d3b24e9 Mon Sep 17 00:00:00 2001 From: Yaron Keren Date: Fri, 13 Nov 2015 19:46:02 +0000 Subject: [PATCH] Add test case for mingw -fuse-ld= support introduced in r242121. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@253066 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Driver/mingw-useld.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test/Driver/mingw-useld.c diff --git a/test/Driver/mingw-useld.c b/test/Driver/mingw-useld.c new file mode 100644 index 0000000000..4cbea6e267 --- /dev/null +++ b/test/Driver/mingw-useld.c @@ -0,0 +1,20 @@ +// RUN: %clang -### -target i686-pc-windows-gnu --sysroot=%S/Inputs/mingw_clang_tree/mingw32 %s 2>&1 | FileCheck -check-prefix=CHECK_LD_32 %s +// CHECK_LD_32: {{ld|ld.exe}}" +// CHECK_LD_32: "i386pe" +// CHECK_LD_32_NOT: "-flavor" "gnu" + +// RUN: %clang -### -target i686-pc-windows-gnu --sysroot=%S/Inputs/mingw_clang_tree/mingw32 %s -fuse-ld=lld 2>&1 | FileCheck -check-prefix=CHECK_LLD_32 %s +// CHECK_LLD_32: "lld" "-flavor" "gnu" +// CHECK_LLD_32: "i386pe" + +// RUN: %clang -### -target i686-pc-windows-gnu --sysroot=%S/Inputs/mingw_clang_tree/mingw32 %s -fuse-ld=link.exe 2>&1 | FileCheck -check-prefix=CHECK_LINK_32 %s +// CHECK_LINK_32: link.exe" +// CHECK_LINK_32: "i386pe" + +// RUN: %clang -### -target x86_64-pc-windows-gnu --sysroot=%S/Inputs/mingw_clang_tree/mingw32 %s -fuse-ld=lld 2>&1 | FileCheck -check-prefix=CHECK_LLD_64 %s +// CHECK_LLD_64: "lld" "-flavor" "gnu" +// CHECK_LLD_64: "i386pep" + +// RUN: %clang -### -target arm-pc-windows-gnu --sysroot=%S/Inputs/mingw_clang_tree/mingw32 %s -fuse-ld=lld 2>&1 | FileCheck -check-prefix=CHECK_LLD_ARM %s +// CHECK_LLD_ARM: "lld" "-flavor" "gnu" +// CHECK_LLD_ARM: "thumb2pe" -- 2.40.0