diff options
| author | Rui Ueyama <ruiu@google.com> | 2016-04-04 17:42:01 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2016-04-04 17:42:01 +0000 |
| commit | d575edb7801163ada155cebe601bb32eff8401cf (patch) | |
| tree | 4baad5d2ea0d1cb126c1c46c5dcfc0f0ffa9abfe | |
| parent | ae6c9fe06f9e015ddbe17a13e5958727724847fb (diff) | |
| download | bcm5719-llvm-d575edb7801163ada155cebe601bb32eff8401cf.tar.gz bcm5719-llvm-d575edb7801163ada155cebe601bb32eff8401cf.zip | |
Fix -disable-verify test.
This test didn't actually test the functionality. The new test
verifies that "-verify" is passed if and only if -disable-verify
is not given.
llvm-svn: 265316
| -rw-r--r-- | lld/test/ELF/lto/verify-invalid.ll | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lld/test/ELF/lto/verify-invalid.ll b/lld/test/ELF/lto/verify-invalid.ll index 41948c39b89..16d6a3e54f1 100644 --- a/lld/test/ELF/lto/verify-invalid.ll +++ b/lld/test/ELF/lto/verify-invalid.ll @@ -1,7 +1,9 @@ ; REQUIRES: x86 ; RUN: llvm-as %s -o %t.o -; RUN: not ld.lld -m elf_x86_64 %t.o -o %t2 -mllvm -disable-verify \ -; RUN: -debug-pass=Arguments 2>&1 | FileCheck %s +; RUN: ld.lld -m elf_x86_64 %t.o -o %t2 -mllvm -debug-pass=Arguments \ +; RUN: 2>&1 | FileCheck -check-prefix=DEFAULT %s +; RUN: ld.lld -m elf_x86_64 %t.o -o %t2 -mllvm -debug-pass=Arguments \ +; RUN: -disable-verify 2>&1 | FileCheck -check-prefix=DISABLE %s target triple = "x86_64-unknown-linux-gnu" target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" @@ -11,4 +13,5 @@ define void @_start() { } ; -disable-verify should disable the verification of bitcode. -; CHECK-NOT: Pass Arguments: {{.*}} -verify {{.*}} -verify +; DEFAULT: Pass Arguments: {{.*}} -verify {{.*}} -verify +; DISABLE-NOT: Pass Arguments: {{.*}} -verify {{.*}} -verify |

