Skip to content

Commit a5eccee

Browse files
committed
[LLD][COFF] Restrict the failifmismatch test to x86_64-windows-msvc because the ELF container doesn't support llvm.linker.options meta-data with only one operand.
llvm-svn: 355602
1 parent 7eb66ba commit a5eccee

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lld/test/COFF/failifmismatch.test

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
REQUIRES: x86
2+
13
RUN: lld-link /entry:main /subsystem:console /out:%t.exe \
24
RUN: %p/Inputs/ret42.obj
35

@@ -10,8 +12,8 @@ RUN: %p/Inputs/ret42.obj /failifmismatch:k1=v1 /failifmismatch:k1=v1
1012
RUN: not lld-link /entry:main /subsystem:console /out:%t.exe \
1113
RUN: %p/Inputs/ret42.obj /failifmismatch:k1=v1 /failifmismatch:k1=v2 2>&1 | FileCheck %s
1214

13-
RUN: llc < %p/Inputs/failmismatch1.ll -filetype obj -o %t1.obj
14-
RUN: llc < %p/Inputs/failmismatch2.ll -filetype obj -o %t2.obj
15+
RUN: llc < %p/Inputs/failmismatch1.ll -mtriple x86_64-windows-msvc -filetype obj -o %t1.obj
16+
RUN: llc < %p/Inputs/failmismatch2.ll -mtriple x86_64-windows-msvc -filetype obj -o %t2.obj
1517
RUN: not lld-link %t1.obj %t2.obj 2>&1 | FileCheck %s -check-prefix OBJ
1618

1719
RUN: llvm-lib %t1.obj /out:%t.lib

0 commit comments

Comments
 (0)