[lld] r320544 - Make a test more interesting.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 12 18:27:03 PST 2017


Author: rafael
Date: Tue Dec 12 18:27:03 2017
New Revision: 320544

URL: http://llvm.org/viewvc/llvm-project?rev=320544&view=rev
Log:
Make a test more interesting.

Before we had no tests for the use of Repl in getSymVA.

Modified:
    lld/trunk/test/ELF/icf-symbol-type.s

Modified: lld/trunk/test/ELF/icf-symbol-type.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/icf-symbol-type.s?rev=320544&r1=320543&r2=320544&view=diff
==============================================================================
--- lld/trunk/test/ELF/icf-symbol-type.s (original)
+++ lld/trunk/test/ELF/icf-symbol-type.s Tue Dec 12 18:27:03 2017
@@ -2,12 +2,18 @@
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
 # RUN: ld.lld --hash-style=sysv %t.o -o %t --icf=all -shared
-# RUN: llvm-readelf --dyn-symbols %t | FileCheck %s
+# RUN: llvm-readelf --dyn-symbols --sections %t | FileCheck %s
 
 # We used to mark bar as absolute.
 
-# CHECK: [[ADDR:[0-9a-z]*]]  0 NOTYPE  GLOBAL DEFAULT   4 foo
-# CHECK: [[ADDR]]            0 NOTYPE  GLOBAL DEFAULT   4 bar
+# CHECK: .text             PROGBITS        0000000000001000
+# CHECK: 0000000000001001 0 NOTYPE  GLOBAL DEFAULT   4 foo
+# CHECK: 0000000000001001 0 NOTYPE  GLOBAL DEFAULT   4 bar
+
+# The nop makes the test more interesting by making the offset of
+# text.f non zero.
+
+nop
 
         .section        .text.f,"ax", at progbits
         .globl  foo




More information about the llvm-commits mailing list