blob: f93ffe7b339aa6345d7698f674d9744e25e8a424 [file] [log] [blame]
Rafael Espindolabb46f522009-01-15 20:18:42 +00001; Test to make sure that the 'private' is used correctly.
2;
Dan Gohmanfce288f2009-09-09 00:09:15 +00003; RUN: llc < %s -mtriple=arm-linux-gnueabi > %t
Rafael Espindolabb46f522009-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
Rafael Espindolabb46f522009-01-15 20:18:42 +00009define private void @foo() {
10 ret void
11}
12
Dan Gohmanaceba312010-01-05 17:55:26 +000013@baz = private global i32 4
Rafael Espindolabb46f522009-01-15 20:18:42 +000014
15define i32 @bar() {
16 call void @foo()
17 %1 = load i32* @baz, align 4
18 ret i32 %1
19}
20