2 # RUN: llvm-mc %s -filetype=obj -triple=x86_64-windows-msvc -o %t.obj
3 # RUN: lld-link %t.obj -export:foo -export:bar -dll -noentry -out:%t.dll -verbose 2>&1 | FileCheck %s
4 # RUN: llvm-readobj --sections %t.dll | FileCheck %s --check-prefix=TEXT
6 # The order of the pdata and xdata sections here shouldn't matter. We should
7 # still replace bar with foo.
9 # CHECK: ICF needed {{.*}} iterations
13 # We should only have five bytes of text.
15 # TEXT-NEXT: Size: 0x5
17 .section .text,"xr",discard,foo
27 .section .pdata,"r",associative,foo
30 .long foo_xdata@IMGREL
32 .section .xdata,"r",associative,foo
36 .section .text,"xr",discard,bar
45 .section .xdata,"r",associative,bar
49 .section .pdata,"r",associative,bar
52 .long bar_xdata@IMGREL