2014-12-17 10:00:38 +08:00
|
|
|
; RUN: llvm-as -o %T/1.bc %s
|
|
|
|
; RUN: llvm-as -o %T/2.bc %S/Inputs/list-symbols.ll
|
|
|
|
; RUN: llvm-lto -list-symbols-only %T/1.bc %T/2.bc | FileCheck %s
|
2015-09-16 13:34:32 +08:00
|
|
|
; REQUIRES: default_triple
|
2014-12-17 10:00:38 +08:00
|
|
|
|
|
|
|
; CHECK-LABEL: 1.bc:
|
|
|
|
; CHECK-DAG: foo
|
|
|
|
; CHECK-DAG: glob
|
|
|
|
; CHECK-LABEL: 2.bc:
|
|
|
|
; CHECK-DAG: glob
|
|
|
|
; CHECK-DAG: bar
|
|
|
|
|
|
|
|
@glob = global i32 0
|
|
|
|
define void @foo() {
|
|
|
|
ret void
|
|
|
|
}
|