2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3 # RUN: echo "zed" > %t.order
4 # RUN: echo "bar" >> %t.order
5 # RUN: echo "foo" >> %t.order
6 # RUN: ld.lld --icf=all --symbol-ordering-file %t.order -shared %t.o -o %t.so
7 # RUN: llvm-nm %t.so | FileCheck %s
9 ## Check that after ICF merges 'foo' and 'zed' we still
10 ## place them before 'bar', in according to ordering file.
11 # CHECK-DAG: 0000000000001288 T foo
12 # CHECK-DAG: 0000000000001288 T zed
13 # CHECK-DAG: 000000000000128c T bar
15 .section .text.foo,"ax",@progbits
21 .section .text.bar,"ax",@progbits
28 .section .text.zed,"ax",@progbits