blob: 484afc9b5af3749d2b074daecc833cb0b4ca7cee [file] [log] [blame]
Rafael Espindolabb46f522009-01-15 20:18:42 +00001; Test to make sure that the 'private' is used correctly.
2;
Dan Gohman36a09472009-09-08 23:54:48 +00003; RUN: llc < %s -mtriple=x86_64-pc-linux | grep .Lfoo:
4; RUN: llc < %s -mtriple=x86_64-pc-linux | grep call.*\.Lfoo
5; RUN: llc < %s -mtriple=x86_64-pc-linux | grep .Lbaz:
6; RUN: llc < %s -mtriple=x86_64-pc-linux | grep movl.*\.Lbaz
Rafael Espindolabb46f522009-01-15 20:18:42 +00007
Rafael Espindolabb46f522009-01-15 20:18:42 +00008define private void @foo() {
9 ret void
10}
11
Dan Gohmanaceba312010-01-05 17:55:26 +000012@baz = private global i32 4
Rafael Espindolabb46f522009-01-15 20:18:42 +000013
14define i32 @bar() {
15 call void @foo()
16 %1 = load i32* @baz, align 4
17 ret i32 %1
18}