[ELF] Make SyntheticSection parameter order match InputSection
[llvm-project.git] / lld / test / ELF / icf-absolute.s
blob3eef7a2d7e288bdab0455e5a4a2032c4adb18dab
1 # REQUIRES: x86
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
4 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %S/Inputs/icf-absolute.s -o %t2
5 # RUN: ld.lld %t %t2 -o /dev/null --icf=all --print-icf-sections | FileCheck %s
7 # CHECK: selected section {{.*}}:(.text.f1)
8 # CHECK: removing identical section {{.*}}:(.text.f2)
10 .globl _start, f1, f2
11 _start:
12 ret
14 .section .text.f1, "ax"
15 f1:
16 .byte a1
18 .section .text.f2, "ax"
19 f2:
20 .byte a2