1; RUN: llvm-as %s -o %t.o
2
3; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold.so \
4; RUN:    -plugin-opt=-pass-remarks=inline %t.o -o %t2.o 2>&1 | FileCheck %s
5
6; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold.so \
7; RUN:   %t.o -o %t2.o 2>&1 | FileCheck -allow-empty --check-prefix=NO-REMARK %s
8
9
10; CHECK: f inlined into _start
11; NO-REMARK-NOT: inlined
12target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
13target triple = "x86_64-unknown-linux-gnu"
14
15define i32 @f() {
16  ret i32 0
17}
18
19define i32 @_start() {
20  %call = call i32 @f()
21  ret i32 %call
22}
23