mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-22 07:32:48 +00:00
12 lines
179 B
LLVM
12 lines
179 B
LLVM
|
; 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
|
||
|
}
|