blob: 96ab4eb400ea1457c0a67909d5f800a16ea803f9 [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 -march=alpha > %t
Rafael Espindola19caec72009-01-15 21:51:46 +00004; RUN: grep \\\$foo: %t
5; RUN: grep bsr.*\\\$\\\$foo %t
6; RUN: grep \\\$baz: %t
7; RUN: grep ldah.*\\\$baz %t
Rafael Espindolabb46f522009-01-15 20:18:42 +00008
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}