mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-07 12:07:17 +00:00
c524b882e4
Add coverage in `llvm-lto` for the API exposed by libLTO to create modules in local contexts. The goal here isn't to test the symbol-related API extensively, just to confirm that these modules work at all. (I'll be shifting code around soon that should be NFC and I realized there was no test coverage.) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224408 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
316 B
LLVM
16 lines
316 B
LLVM
; 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
|
|
}
|