Expand test a bit.

Also make it more reliable by not depending on the order of the
symbols.

This makes the next patch easier to read.

llvm-svn: 319246
This commit is contained in:
Rafael Espindola 2017-11-28 23:03:14 +00:00
parent 8f62394751
commit 33e023070f
1 changed files with 23 additions and 13 deletions

View File

@ -12,19 +12,29 @@
// CHECK-NEXT: movl $0x11010, %edx // CHECK-NEXT: movl $0x11010, %edx
// CHECK-NEXT: movl $0x11000, %edx // CHECK-NEXT: movl $0x11000, %edx
// RUN: llvm-readobj -t %t3 | FileCheck -check-prefix=SYM %s // RUN: llvm-readobj -t %t3 > %t4.dump
// SYM: Name: foo // RUN: FileCheck --check-prefix=SYM1 %s < %t4.dump
// SYM-NEXT: Value: 0x11000 // RUN: FileCheck --check-prefix=SYM2 %s < %t4.dump
// SYM-NEXT: Size: // RUN: FileCheck --check-prefix=SYM3 %s < %t4.dump
// SYM-NEXT: Binding: Global
// SYM: Name: __wrap_foo // SYM1: Name: foo
// SYM-NEXT: Value: 0x11010 // SYM1-NEXT: Value: 0x11000
// SYM-NEXT: Size: // SYM1-NEXT: Size:
// SYM-NEXT: Binding: Weak // SYM1-NEXT: Binding: Global
// SYM: Name: __real_foo // SYM1-NEXT: Type: None
// SYM-NEXT: Value: 0x11020 // SYM1-NEXT: Other: 0
// SYM-NEXT: Size: // SYM2: Name: __wrap_foo
// SYM-NEXT: Binding: Global // SYM2-NEXT: Value: 0x11010
// SYM2-NEXT: Size:
// SYM2-NEXT: Binding: Weak
// SYM2-NEXT: Type: None
// SYM2-NEXT: Other: 0
// SYM3: Name: __real_foo
// SYM3-NEXT: Value: 0x11020
// SYM3-NEXT: Size:
// SYM3-NEXT: Binding: Global
// SYM3-NEXT: Type: None
// SYM3-NEXT: Other: 0
.global _start .global _start
_start: _start: