blob: fba56b4ffeeb92293a3d680f0effabbda62af6d3 [file] [log] [blame]
Rafael Espindolaa168fc92009-01-15 20:18:42 +00001; Test to make sure that the 'private' is used correctly.
2;
Dan Gohmanda594cf2009-09-09 00:09:15 +00003; RUN: llc < %s -mtriple=arm-linux-gnueabi > %t
Rafael Espindolaa168fc92009-01-15 20:18:42 +00004; 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
Dan Gohman81bc62c2010-01-05 17:55:26 +000015@baz = private global i32 4
Rafael Espindolaa168fc92009-01-15 20:18:42 +000016
17define i32 @bar() {
18 call void @foo()
19 %1 = load i32* @baz, align 4
20 ret i32 %1
21}
22