Change the internal interface to makeNameProper to take a bool that
[oota-llvm.git] / test / CodeGen / PowerPC / private.ll
1 ; 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
8 ; RUN: llvm-as < %s | llc -mtriple=powerpc-apple-darwin > %t
9 ; RUN: grep Lfoo: %t
10 ; RUN: grep bl.*\Lfoo %t
11 ; RUN: grep Lbaz: %t
12 ; RUN: grep lis.*\Lbaz %t
13
14 declare void @foo() nounwind
15
16 define private void @foo() nounwind {
17         ret void
18 }
19
20 @baz = private global i32 4;
21
22 define i32 @bar() nounwind {
23         call void @foo()
24         %1 = load i32* @baz, align 4
25         ret i32 %1
26 }