annotate clang/test/Driver/fuse-ld-windows.c @ 222:81f6424ef0e3 llvm-original

LLVM original branch
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 18 Jul 2021 22:10:01 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // REQUIRES: system-windows
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 // We used to require adding ".exe" suffix when cross-compiling on Windows.
anatofuz
parents:
diff changeset
4 // RUN: %clang %s -### -o %t.o -target i386-unknown-linux \
anatofuz
parents:
diff changeset
5 // RUN: -B %S/Inputs/fuse_ld_windows -fuse-ld=foo 2>&1 \
anatofuz
parents:
diff changeset
6 // RUN: | FileCheck %s
anatofuz
parents:
diff changeset
7
anatofuz
parents:
diff changeset
8 // Check that the old variant still works.
anatofuz
parents:
diff changeset
9 // RUN: %clang %s -### -o %t.o -target i386-unknown-linux \
anatofuz
parents:
diff changeset
10 // RUN: -B %S/Inputs/fuse_ld_windows -fuse-ld=foo.exe 2>&1 \
anatofuz
parents:
diff changeset
11 // RUN: | FileCheck %s
anatofuz
parents:
diff changeset
12
anatofuz
parents:
diff changeset
13 // With the full path, the extension can be omitted, too,
anatofuz
parents:
diff changeset
14 // because Windows allows that.
anatofuz
parents:
diff changeset
15 // RUN: %clang %s -### -o %t.o -target i386-unknown-linux \
anatofuz
parents:
diff changeset
16 // RUN: -fuse-ld=%S/Inputs/fuse_ld_windows/ld.foo 2>&1 \
anatofuz
parents:
diff changeset
17 // RUN: | FileCheck %s
anatofuz
parents:
diff changeset
18
anatofuz
parents:
diff changeset
19 // Check that the full path with the extension works too.
anatofuz
parents:
diff changeset
20 // RUN: %clang %s -### -o %t.o -target i386-unknown-linux \
anatofuz
parents:
diff changeset
21 // RUN: -fuse-ld=%S/Inputs/fuse_ld_windows/ld.foo.exe 2>&1 \
anatofuz
parents:
diff changeset
22 // RUN: | FileCheck %s
anatofuz
parents:
diff changeset
23
anatofuz
parents:
diff changeset
24 // CHECK-NOT: invalid linker name
anatofuz
parents:
diff changeset
25 // CHECK: /Inputs/fuse_ld_windows{{/|\\\\}}ld.foo