57 lines · plain
1# REQUIRES: x862 3# RUN: llvm-mc -triple=i686-windows-gnu %s -defsym stdcall=0 -filetype=obj -o %t.obj4 5# RUN: lld-link -lldmingw -entry:main %t.obj -out:%t.exe6# RUN: llvm-objdump -s %t.exe | FileCheck %s7 8# RUN: llvm-mc -triple=i686-windows-gnu %s -defsym stdcall=1 -filetype=obj -o %t.stdcall.obj9# RUN: lld-link -lldmingw -entry:main %t.stdcall.obj -out:%t.stdcall.exe10# RUN: llvm-objdump -s %t.stdcall.exe | FileCheck %s11 12# Check that the .eh_frame comdat was included, even if it had no symbols,13# due to associativity with the symbol _foo.14 15# CHECK: Contents of section .eh_fram:16# CHECK: 403000 4217 18 .text19 .def _main;20 .scl 2;21 .type 32;22 .endef23 .globl _main24 .p2align 4, 0x9025_main:26.if stdcall==027 call _foo28.else29 call _foo@030.endif31 ret32 33 .section .eh_frame$foo,"dr"34 .linkonce discard35 .byte 0x4236 37.if stdcall==038 .def _foo;39.else40 .def _foo@0;41.endif42 .scl 2;43 .type 32;44 .endef45.if stdcall==046 .section .text$foo,"xr",discard,_foo47 .globl _foo48 .p2align 449_foo:50.else51 .section .text$foo,"xr",discard,_foo@052 .globl _foo@053 .p2align 454_foo@0:55.endif56 ret57