1; Test plugin options new-pass-manager and debug-pass-manager
2; RUN: opt -module-summary %s -o %t.o
3
4; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold%shlibext \
5; RUN:     --plugin-opt=thinlto \
6; RUN:     --plugin-opt=new-pass-manager \
7; RUN:     --plugin-opt=debug-pass-manager \
8; RUN:     --plugin-opt=cache-dir=%t.cache \
9; RUN:     -o %t2.o %t.o 2>&1 | FileCheck %s
10
11; CHECK: Running pass:
12
13;; --plugin-opt=debug-pass-manager is a no-op for the legacy pass manager.
14; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold%shlibext \
15; RUN:     --plugin-opt=thinlto \
16; RUN:     --plugin-opt=legacy-pass-manager --plugin-opt=debug-pass-manager \
17; RUN:     -o /dev/null %t.o 2>&1 | count 0
18
19target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
20target triple = "x86_64-unknown-linux-gnu"
21
22define void @globalfunc() #0 {
23entry:
24  ret void
25}
26