Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / ExecutionEngine / JITLink / x86-64 / COFF_comdat_weak.s
blob79ac75ffe441f73920a7831cbe8b540c5b540408
1 # REQUIRES: asserts
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-windows-msvc %s -o %t
3 # RUN: llvm-jitlink --debug-only=jitlink -noexec %t 2>&1 | FileCheck %s
5 # Check a COMDAT any symbol is exported as a weak symbol.
7 # CHECK: Creating graph symbols...
8 # CHECK: 8: Exporting COMDAT graph symbol for COFF symbol "func" in section 4
9 # CHECK-NEXT: 0x0 (block + 0x00000000): size: 0x00000000, linkage: weak, scope: default, dead - func
11 .text
13 .def func;
14 .scl 2;
15 .type 32;
16 .endef
17 .section .text,"xr",discard,func
18 .globl func
19 .p2align 4, 0x90
20 func:
21 retq
23 .def main;
24 .scl 2;
25 .type 32;
26 .endef
27 .text
28 .globl main
29 .p2align 4, 0x90
30 main:
31 retq