33 lines · plain
1# REQUIRES: x862# RUN: split-file %s %t.dir3# RUN: llvm-lib -machine:i386 -out:%t.dir/test32.lib -def:%t.dir/test32.def4# RUN: llvm-lib -machine:amd64 -out:%t.dir/test64.lib -def:%t.dir/test64.def5# RUN: llvm-mc -triple i686-windows-msvc %t.dir/test.s -filetype=obj -o %t.dir/test32.obj6# RUN: llvm-mc -triple x86_64-windows-msvc %t.dir/test.s -filetype=obj -o %t.dir/test64.obj7 8# RUN: not lld-link -dll -noentry -out:%t32.dll %t.dir/test32.obj %t.dir/test64.lib 2>&1 | FileCheck --check-prefix=ERR32 %s9# ERR32: error: test64.lib(test.dll): machine type x64 conflicts with x8610 11# RUN: not lld-link -dll -noentry -out:%t64.dll %t.dir/test64.obj %t.dir/test32.lib 2>&1 | FileCheck --check-prefix=ERR64 %s12# ERR64: error: test32.lib(test.dll): machine type x86 conflicts with x6413 14#--- test.s15 .def @feat.00;16 .scl 3;17 .type 0;18 .endef19 .globl @feat.0020@feat.00 = 121 .data22 .rva __imp__test23 24#--- test32.def25NAME test.dll26EXPORTS27 test DATA28 29#--- test64.def30NAME test.dll31EXPORTS32 _test DATA33