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

12 lines
161 B
LLVM
Raw Normal View History

2012-07-05 20:51:06 -04:00
; RUN: opt < %s -globalopt -S | grep internal | count 2
global i32 0
define i32* @1() {
ret i32* @0
}
define i32* @f() {
entry:
call i32* @1()
ret i32* %0
}