xref: /llvm-project-15.0.7/llvm/test/ExecutionEngine/JITLink/X86/COFF_comdat_weak_plus_strong.s (revision c7ea2090)
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# FIXME: Comdat any + ordinary strong symbol should generate duplicate section error
2# XFAIL: *
3# RUN: rm -rf %t && mkdir -p %t
4# RUN: yaml2obj %S/Inputs/COFF_comdat_weak_def.yaml -o %t/COFF_weak_1.o
5# RUN: yaml2obj %S/Inputs/COFF_strong_def.yaml -o %t/COFF_strong.o
6# RUN: llvm-mc -filetype=obj -triple=x86_64-windows-msvc %s -o %t/COFF_main.o
7# RUN:
8# RUN: not llvm-jitlink -noexec %t/COFF_main.o %t/COFF_weak_1.o %t/COFF_strong.o \
9# RUN: -slab-allocate 100Kb -slab-address 0xfff00000 -slab-page-size 4096 \
10# RUN: -show-graph -noexec 2>&1 | FileCheck %s
11#
12# Check that a combination of comdat any definition and strong definition generate
13# duplicate definition error.
14#
15# CHECK: section strongfunc:
16# CHECK-EMPTY:
17# CHECK-NEXT:  block 0xfff02000 size = 0x00000001, align = 16, alignment-offset = 0
18# CHECK-NEXT:    symbols:
19# CHECK-NEXT:      0xfff02000 (block + 0x00000000): size: 0x00000001, linkage: strong, scope: default, live  -   func
20# CHECK-NEXT:    no edges
21
22	.text
23
24	.def	main;
25	.scl	2;
26	.type	32;
27	.endef
28	.globl	main
29	.p2align	4, 0x90
30main:
31    callq func
32	retq

served by {OpenGrok

Last Index Update: Fri May 15 20:09:11 GMT 2026