Silence -Wunused-variable in release builds.
[llvm/stm8.git] / test / CodeGen / SPARC / private.ll
blobf06ccd0df1aae1f21ca50582de0d8ec3b142d16f
1 ; Test to make sure that the 'private' is used correctly.
3 ; RUN: llc < %s  -march=sparc > %t
4 ; RUN: grep .foo: %t
5 ; RUN: grep call.*\.foo %t
6 ; RUN: grep .baz: %t
7 ; RUN: grep ld.*\.baz %t
9 define private void @foo() {
10         ret void
13 @baz = private global i32 4
15 define i32 @bar() {
16         call void @foo()
17         %1 = load i32* @baz, align 4
18         ret i32 %1