Add a test we already get right.

It would have found a problem in a patch I am writing.

llvm-svn: 296339
This commit is contained in:
Rafael Espindola 2017-02-27 13:21:18 +00:00
parent 749c557d81
commit cf8396e4aa
1 changed files with 14 additions and 0 deletions

14
lld/test/ELF/icf8.s Normal file
View File

@ -0,0 +1,14 @@
# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
# RUN: ld.lld %t.o -o %t.so --icf=all -shared
# RUN: llvm-objdump -t %t.so | FileCheck %s
# CHECK: zed
.section .foo,"ax",@progbits
nop
.section .bar,"ax",@progbits
zed:
nop