2016-03-10 04:01:08 +08:00
|
|
|
; REQUIRES: x86
|
2016-06-05 09:04:59 +08:00
|
|
|
; RUN: cd %T
|
2016-04-03 10:16:56 +08:00
|
|
|
; RUN: rm -f a.out a.out.lto.bc a.out.lto.o
|
2016-03-10 04:01:08 +08:00
|
|
|
; RUN: llvm-as %s -o %t.o
|
|
|
|
; RUN: llvm-as %p/Inputs/save-temps.ll -o %t2.o
|
2016-04-03 10:16:56 +08:00
|
|
|
; RUN: ld.lld -shared -m elf_x86_64 %t.o %t2.o -save-temps
|
|
|
|
; RUN: llvm-nm a.out | FileCheck %s
|
2016-09-29 08:40:08 +08:00
|
|
|
; RUN: llvm-nm a.out.0.0.preopt.bc | FileCheck %s
|
2016-04-03 10:16:56 +08:00
|
|
|
; RUN: llvm-nm a.out.lto.o | FileCheck %s
|
2016-09-29 08:40:08 +08:00
|
|
|
; RUN: llvm-dis a.out.0.0.preopt.bc
|
2016-03-10 04:01:08 +08:00
|
|
|
|
|
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
|
|
|
|
|
|
define void @foo() {
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2016-03-10 06:30:05 +08:00
|
|
|
; CHECK: T bar
|
|
|
|
; CHECK: T foo
|