r253066 - Add test case for mingw -fuse-ld= support introduced in r242121.
Yaron Keren via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 13 11:46:02 PST 2015
Author: yrnkrn
Date: Fri Nov 13 13:46:02 2015
New Revision: 253066
URL: http://llvm.org/viewvc/llvm-project?rev=253066&view=rev
Log:
Add test case for mingw -fuse-ld= support introduced in r242121.
Added:
cfe/trunk/test/Driver/mingw-useld.c
Added: cfe/trunk/test/Driver/mingw-useld.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/mingw-useld.c?rev=253066&view=auto
==============================================================================
--- cfe/trunk/test/Driver/mingw-useld.c (added)
+++ cfe/trunk/test/Driver/mingw-useld.c Fri Nov 13 13:46:02 2015
@@ -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"
More information about the cfe-commits
mailing list