[LTO] Add an early run of functionattrs
[oota-llvm.git] / test / tools / gold / X86 / remarks.ll
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
12 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
13 target triple = "x86_64-unknown-linux-gnu"
14
15 define i32 @f() {
16   ret i32 0
17 }
18
19 define i32 @_start() {
20   %call = call i32 @f()
21   ret i32 %call
22 }