[LLD][COFF] Fix TypeServerSource matcher with more than one collision
[llvm-project.git] / lld / test / COFF / icf-vtables.s
blob650024763610e557815f6301d787b63f6be6c594
1 # REQUIRES: x86
2 # RUN: llvm-mc -triple=x86_64-windows-msvc -filetype=obj -o %t.obj %s
3 # RUN: lld-link %t.obj /out:%t.exe /entry:main /subsystem:console
4 # RUN: llvm-objdump -s %t.exe | FileCheck %s
6 # CHECK: Contents of section .text:
7 .globl main
8 main:
9 # CHECK-NEXT: 140001000 00200040 01000000 01200040 01000000
10 .8byte "??_"
11 .8byte "??_7"
12 # CHECK-NEXT: 140001010 01200040 01000000
13 .8byte "??_7a"
15 .section .rdata,"dr",discard,"??_"
16 .globl "??_"
17 "??_":
18 .byte 42
20 .section .rdata,"dr",discard,"??_7"
21 .globl "??_7"
22 "??_7":
23 .byte 42
25 .section .rdata,"dr",discard,"??_7a"
26 .globl "??_7a"
27 "??_7a":
28 .byte 42