brintos

brintos / llvm-project-archived public Read only

0
0
Text · 980 B · 8a5af61 Raw
26 lines · c
1// REQUIRES: system-windows2 3// We used to require adding ".exe" suffix when cross-compiling on Windows.4// RUN: %clang %s -### -o %t.o --target=i386-unknown-linux \5// RUN:     -B %S/Inputs/fuse_ld_windows -fuse-ld=foo 2>&1 \6// RUN:   | FileCheck %s7 8// Check that the old variant still works.9// RUN: %clang %s -### -o %t.o --target=i386-unknown-linux \10// RUN:     -B %S/Inputs/fuse_ld_windows -fuse-ld=foo.exe 2>&1 \11// RUN:   | FileCheck %s12 13// With the full path, the extension can be omitted, too,14// because Windows allows that.15// RUN: %clang %s -### -o %t.o --target=i386-unknown-linux \16// RUN:     -fuse-ld=%S/Inputs/fuse_ld_windows/ld.foo 2>&1 \17// RUN:   | FileCheck %s18 19// Check that the full path with the extension works too.20// RUN: %clang %s -### -o %t.o --target=i386-unknown-linux \21// RUN:     -fuse-ld=%S/Inputs/fuse_ld_windows/ld.foo.exe 2>&1 \22// RUN:   | FileCheck %s23 24// CHECK-NOT: invalid linker name25// CHECK: /Inputs/fuse_ld_windows{{/|\\\\}}ld.foo26