aboutsummaryrefslogtreecommitdiffstats
path: root/test/LTO/X86/list-symbols.ll
blob: 41b7d00deecc67d38d84dcb1854bd12b8bc5f1fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; 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

; 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
}