llvm-project/llvm/test/tools/llvm-split/global.ll
Matt Arsenault 7dc1009d13 llvm-split: Convert tests to opaque pointers
global.ll and scc-const-alias.ll needed some manual fixups; the script
seems to not correctly deal with constantexpr bitcasts.
2022-11-28 09:48:21 -05:00

12 lines
339 B
LLVM

; RUN: llvm-split -o %t %s
; RUN: llvm-dis -o - %t0 | FileCheck --check-prefix=CHECK0 %s
; RUN: llvm-dis -o - %t1 | FileCheck --check-prefix=CHECK1 %s
; CHECK0: @foo = global ptr @bar
; CHECK1: @foo = external global ptr
@foo = global ptr @bar
; CHECK0: @bar = external global ptr
; CHECK1: @bar = global ptr @foo
@bar = global ptr @foo