Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / COFF / eh_frame_terminator.s
blob001485a92bffbf4e4e93784c70c5f6ba2afcfe90
1 // REQUIRES: x86
2 // RUN: llvm-mc -filetype=obj -triple=x86_64-windows-gnu %s -o %t.main.o
3 // RUN: llvm-mc -filetype=obj -triple=x86_64-windows-gnu \
4 // RUN: %p/Inputs/eh_frame_terminator-otherfunc.s -o %t.otherfunc.o
5 // RUN: llvm-mc -filetype=obj -triple=x86_64-windows-gnu \
6 // RUN: %p/Inputs/eh_frame_terminator-crtend.s -o %t.crtend.o
7 // RUN: rm -f %t.otherfunc.lib
8 // RUN: llvm-ar rcs %t.otherfunc.lib %t.otherfunc.o
9 // RUN: lld-link -lldmingw %t.main.o %t.otherfunc.lib %t.crtend.o -out:%t.exe
10 // RUN: llvm-objdump -s %t.exe | FileCheck %s
12 .text
13 .globl main
14 main:
15 call otherfunc
16 ret
18 .globl mainCRTStartup
19 mainCRTStartup:
20 call main
22 .section .eh_frame,"dr"
23 .byte 1
25 // CHECK: Contents of section .eh_fram:
26 // CHECK-NEXT: 140003000 010203