annotate lld/test/COFF/failifmismatch.test @ 192:d7606dcf6fce

Added tag llvm10 for changeset 0572611fdcc8
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 14 Dec 2020 18:01:34 +0900
parents 1d019706d866
children 2e18cbf3894f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 REQUIRES: x86
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 RUN: lld-link /entry:main /subsystem:console /out:%t.exe \
anatofuz
parents:
diff changeset
4 RUN: %p/Inputs/ret42.obj
anatofuz
parents:
diff changeset
5
anatofuz
parents:
diff changeset
6 RUN: lld-link /entry:main /subsystem:console /out:%t.exe \
anatofuz
parents:
diff changeset
7 RUN: %p/Inputs/ret42.obj /failifmismatch:k1=v1 /failifmismatch:k2=v1
anatofuz
parents:
diff changeset
8
anatofuz
parents:
diff changeset
9 RUN: lld-link /entry:main /subsystem:console /out:%t.exe \
anatofuz
parents:
diff changeset
10 RUN: %p/Inputs/ret42.obj /failifmismatch:k1=v1 /failifmismatch:k1=v1
anatofuz
parents:
diff changeset
11
anatofuz
parents:
diff changeset
12 RUN: not lld-link /entry:main /subsystem:console /out:%t.exe \
anatofuz
parents:
diff changeset
13 RUN: %p/Inputs/ret42.obj /failifmismatch:k1=v1 /failifmismatch:k1=v2 2>&1 | FileCheck %s
anatofuz
parents:
diff changeset
14
anatofuz
parents:
diff changeset
15 RUN: llc < %p/Inputs/failmismatch1.ll -mtriple x86_64-windows-msvc -filetype obj -o %t1.obj
anatofuz
parents:
diff changeset
16 RUN: llc < %p/Inputs/failmismatch2.ll -mtriple x86_64-windows-msvc -filetype obj -o %t2.obj
anatofuz
parents:
diff changeset
17 RUN: not lld-link %t1.obj %t2.obj 2>&1 | FileCheck %s -check-prefix OBJ
anatofuz
parents:
diff changeset
18
anatofuz
parents:
diff changeset
19 RUN: llvm-lib %t1.obj /out:%t.lib
anatofuz
parents:
diff changeset
20 RUN: not lld-link %t.lib %t2.obj 2>&1 | FileCheck %s -check-prefix LIB
anatofuz
parents:
diff changeset
21
anatofuz
parents:
diff changeset
22 CHECK: lld-link: error: /failifmismatch: mismatch detected for 'k1':
anatofuz
parents:
diff changeset
23 CHECK-NEXT: >>> cmd-line has value v1
anatofuz
parents:
diff changeset
24 CHECK-NEXT: >>> cmd-line has value v2
anatofuz
parents:
diff changeset
25
anatofuz
parents:
diff changeset
26 OBJ: lld-link: error: /failifmismatch: mismatch detected for 'TEST':
anatofuz
parents:
diff changeset
27 OBJ-NEXT: >>> {{.*}}failifmismatch.test.tmp1.obj has value 1
anatofuz
parents:
diff changeset
28 OBJ-NEXT: >>> {{.*}}failifmismatch.test.tmp2.obj has value 2
anatofuz
parents:
diff changeset
29
anatofuz
parents:
diff changeset
30 LIB: lld-link: error: /failifmismatch: mismatch detected for 'TEST':
anatofuz
parents:
diff changeset
31 LIB-NEXT: >>> {{.*}}failifmismatch.test.tmp2.obj has value 2
anatofuz
parents:
diff changeset
32 LIB-NEXT: >>> failifmismatch.test.tmp.lib(failifmismatch.test.tmp1.obj) has value 1