llvm-project/llvm/test/Transforms/GlobalOpt/2009-03-06-Anonymous.ll

14 lines
228 B
LLVM
Raw Normal View History

; RUN: opt < %s -globalopt -S | FileCheck %s
global i32 0
; CHECK: @0 = internal global i32 0
define i32* @1() {
ret i32* @0
}
; CHECK: define internal fastcc i32* @1()
define i32* @f() {
entry:
call i32* @1()
ret i32* %0
}