3 # RUN: llvm-mc -triple=i686-windows-gnu %s -defsym stdcall=0 -filetype=obj -o %t.obj
5 # RUN: lld-link -lldmingw -entry:main %t.obj -out:%t.exe
6 # RUN: llvm-objdump -s %t.exe | FileCheck %s
8 # RUN: llvm-mc -triple=i686-windows-gnu %s -defsym stdcall=1 -filetype=obj -o %t.stdcall.obj
9 # RUN: lld-link -lldmingw -entry:main %t.stdcall.obj -out:%t.stdcall.exe
10 # RUN: llvm-objdump -s %t.stdcall.exe | FileCheck %s
12 # Check that the .eh_frame comdat was included, even if it had no symbols,
13 # due to associativity with the symbol _foo.
15 # CHECK: Contents of section .eh_fram:
33 .section .eh_frame$foo,"dr"
46 .section .text$foo,"xr",discard,_foo
51 .section .text$foo,"xr",discard,_foo@0