[ELF] - Add missing check calls to the tests.

llvm-svn: 328794
This commit is contained in:
George Rimar 2018-03-29 14:57:29 +00:00
parent b0eee29c74
commit 7d0be9aff9
2 changed files with 4 additions and 2 deletions

View File

@ -4,9 +4,10 @@
// RUN: llvm-mc -filetype=obj -triple=i386-pc-linux %S/Inputs/x86-64-reloc-16-error.s -o %t2
// RUN: llvm-mc -filetype=obj -triple=i386-pc-linux %s -o %t
// RUN: ld.lld -shared %t %t1 -o %t3
// RUN: llvm-objdump -s %t3 | FileCheck %s
// CHECK: Contents of section .text:
// CHECK-NEXT: 200000 42
// CHECK-NEXT: 1000 42
// RUN: not ld.lld -shared %t %t2 -o %t4 2>&1 | FileCheck --check-prefix=ERROR %s
// ERROR: relocation R_386_16 out of range: 65536 is not in [0, 65535]

View File

@ -4,9 +4,10 @@
// RUN: llvm-mc -filetype=obj -triple=i386-pc-linux %S/Inputs/i386-reloc-8-error.s -o %t2
// RUN: llvm-mc -filetype=obj -triple=i386-pc-linux %s -o %t
// RUN: ld.lld -shared %t %t1 -o %t3
// RUN: llvm-objdump -s %t3 | FileCheck %s
// CHECK: Contents of section .text:
// CHECK-NEXT: 200000 42
// CHECK-NEXT: 1000 ff
// RUN: not ld.lld -shared %t %t2 -o %t4 2>&1 | FileCheck --check-prefix=ERROR %s
// ERROR: relocation R_386_8 out of range: 256 is not in [0, 255]