33 lines · plain
1# REQUIRES: asserts2# RUN: llvm-mc -filetype=obj -triple=x86_64-windows-msvc %s -o %t3# RUN: llvm-jitlink -num-threads=0 -debug-only=jitlink -noexec %t 2>&1 \4# RUN: | FileCheck %s5#6# Check a COMDAT any symbol is exported as a weak symbol.7#8# CHECK: Creating graph symbols...9# CHECK: 8: Exporting COMDAT graph symbol for COFF symbol "func" in section 410# CHECK-NEXT: 0x0 (block + 0x00000000): size: 0x00000000, linkage: weak, scope: default, dead - func11 12 .text13 14 .def func;15 .scl 2;16 .type 32;17 .endef18 .section .text,"xr",discard,func19 .globl func20 .p2align 4, 0x9021func:22 retq23 24 .def main;25 .scl 2;26 .type 32;27 .endef28 .text29 .globl main30 .p2align 4, 0x9031main:32 retq33