blob: 91567ce82803bb3f9f53c3cd845e024b163616dd [file] [log] [blame]
Rafael Espindolabb46f522009-01-15 20:18:42 +00001; Test to make sure that the 'private' is used correctly.
2;
3; RUN: llvm-as < %s | llc -march=cellspu > %t
4; RUN: grep .Lfoo: %t
5; RUN: grep brsl.*\.Lfoo %t
6; RUN: grep .Lbaz: %t
7; RUN: grep ila.*\.Lbaz %t
8
9
10declare void @foo()
11
12define private void @foo() {
13 ret void
14}
15
16@baz = private global i32 4;
17
18define i32 @bar() {
19 call void @foo()
20 %1 = load i32* @baz, align 4
21 ret i32 %1
22}