mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-30 15:32:52 +01:00
4413e71a39
llvm-svn: 179276
22 lines
379 B
LLVM
22 lines
379 B
LLVM
; Test to make sure that the 'private' is used correctly.
|
|
;
|
|
; RUN: llc < %s -mtriple=arm-linux-gnueabi | FileCheck %s
|
|
; CHECK: .Lfoo:
|
|
; CHECK: bar:
|
|
; CHECK: bl .Lfoo
|
|
; CHECK: .long .Lbaz
|
|
; CHECK: .Lbaz:
|
|
|
|
define private void @foo() {
|
|
ret void
|
|
}
|
|
|
|
@baz = private global i32 4
|
|
|
|
define i32 @bar() {
|
|
call void @foo()
|
|
%1 = load i32* @baz, align 4
|
|
ret i32 %1
|
|
}
|
|
|