1; RUN: llvm-as %s -o %t.o
2; RUN: wasm-ld %t.o -o %t2 --no-lto-new-pass-manager -mllvm -debug-pass=Arguments \
3; RUN:   2>&1 | FileCheck -check-prefix=DEFAULT-LPM %s
4; RUN: wasm-ld %t.o -o %t2 --no-lto-new-pass-manager -mllvm -debug-pass=Arguments \
5; RUN:   -disable-verify 2>&1 | FileCheck -check-prefix=DISABLE-LPM %s
6; RUN: wasm-ld %t.o -o %t2 --lto-new-pass-manager --lto-debug-pass-manager \
7; RUN:   2>&1 | FileCheck -check-prefix=DEFAULT-NPM %s
8; RUN: wasm-ld %t.o -o %t2 --lto-new-pass-manager --lto-debug-pass-manager \
9; RUN:   -disable-verify 2>&1 | FileCheck -check-prefix=DISABLE-NPM %s
10
11target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
12target triple = "wasm32-unknown-unknown"
13
14define void @_start() {
15  ret void
16}
17
18; -disable-verify should disable the verification of bitcode.
19; DEFAULT-LPM:     Pass Arguments: {{.*}} -verify {{.*}} -verify
20; DISABLE-LPM-NOT: Pass Arguments: {{.*}} -verify {{.*}} -verify
21; DEFAULT-NPM: Running pass: VerifierPass
22; DEFAULT-NPM: Running pass: VerifierPass
23; DEFAULT-NPM-NOT: Running pass: VerifierPass
24; DISABLE-NPM-NOT: Running pass: VerifierPass
25