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