aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/GlobalOpt/2009-03-06-Anonymous.ll
blob: ea13d293d5fa3c676d61635d30a2d1eda02819c5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
; RUN: llvm-as < %s | opt -globalopt | llvm-dis | grep internal | count 2

global i32 0
define i32* @1() {
	ret i32* @0
}
define i32* @f() {
entry:
	call i32* @1()
	ret i32* %0
}