xref: /llvm-project/llvm/test/CodeGen/ARM/private.ll (revision c8054d90fbe7ff386577c27dd51d597924036cde)
1; Test to make sure that the 'private' is used correctly.
2;
3; RUN: llc < %s -mtriple=arm-linux-gnueabi > %t
4; RUN: grep .Lfoo: %t
5; RUN: egrep bl.*\.Lfoo %t
6; RUN: grep .Lbaz: %t
7; RUN: grep long.*\.Lbaz %t
8
9declare void @foo()
10
11define private void @foo() {
12        ret void
13}
14
15@baz = private global i32 4;
16
17define i32 @bar() {
18        call void @foo()
19	%1 = load i32* @baz, align 4
20        ret i32 %1
21}
22
23