blob: f14cfcedf9476e8fb29d939a436be739d6dad5c4 [file] [log] [blame]
; RUN: opt < %s -passes=globalopt -S | FileCheck %s
@0 = global i32 0
; CHECK-DAG: @0 = internal global i32 0
@1 = private global i32 0
; CHECK-DAG: @1 = private global i32 0
define i32* @2() {
ret i32* @0
}
; CHECK-DAG: define internal fastcc i32* @2()
define i32* @f() {
entry:
call i32* @2()
ret i32* %0
}
define i32* @g() {
entry:
ret i32* @1
}