blob: 0f0d13492a08835a58861b93f27f0b04e51e3157 [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 -mtriple=powerpc-unknown-linux-gnu > %t
4; RUN: grep .Lfoo: %t
5; RUN: grep bl.*\.Lfoo %t
6; RUN: grep .Lbaz: %t
7; RUN: grep lis.*\.Lbaz %t
Evan Cheng1902a122009-01-25 06:32:01 +00008; RUN: llvm-as < %s | llc -mtriple=powerpc-apple-darwin > %t
9; RUN: grep L_foo: %t
10; RUN: grep bl.*\L_foo %t
11; RUN: grep L_baz: %t
12; RUN: grep lis.*\L_baz %t
Rafael Espindolabb46f522009-01-15 20:18:42 +000013
14declare void @foo()
15
16define private void @foo() {
17 ret void
18}
19
20@baz = private global i32 4;
21
22define i32 @bar() {
23 call void @foo()
24 %1 = load i32* @baz, align 4
25 ret i32 %1
26}