1; RUN: llvm-as %s -o %t.o
2; REQUIRES: asserts
3
4; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold%shlibext \
5; RUN:    --plugin-opt=disable-verify \
6; RUN:    --plugin-opt=-debug-pass=Arguments \
7; RUN:    -shared %t.o -o %t2.o 2>&1 | FileCheck %s
8
9; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold%shlibext \
10; RUN:    --plugin-opt=-debug-pass=Arguments \
11; RUN:    -shared %t.o -o %t2.o 2>&1 | FileCheck %s -check-prefix=VERIFY
12
13target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
14target triple = "x86_64-unknown-linux-gnu"
15
16; -disable-verify should disable output verification from the optimization
17; pipeline.
18; CHECK: Pass Arguments: {{.*}} -verify -
19; CHECK-NOT: -verify
20
21; VERIFY: Pass Arguments: {{.*}} -verify {{.*}} -verify
22
23define void @f() {
24entry:
25  ret void
26}
27