From bb46f52027416598a662dc1c58f48d9d56b1a65b Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 15 Jan 2009 20:18:42 +0000 Subject: Add the private linkage. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62279 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/Alpha/private.ll | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 test/CodeGen/Alpha/private.ll (limited to 'test/CodeGen/Alpha') diff --git a/test/CodeGen/Alpha/private.ll b/test/CodeGen/Alpha/private.ll new file mode 100644 index 0000000..8bb8253 --- /dev/null +++ b/test/CodeGen/Alpha/private.ll @@ -0,0 +1,21 @@ +; Test to make sure that the 'private' is used correctly. +; +; RUN: llvm-as < %s | llc > %t +; RUN: grep .Lfoo: %t +; RUN: grep call.*\.Lfoo %t +; RUN: grep .Lbaz: %t +; RUN: grep movl.*\.Lbaz %t + +declare void @foo() + +define private void @foo() { + ret void +} + +@baz = private global i32 4; + +define i32 @bar() { + call void @foo() + %1 = load i32* @baz, align 4 + ret i32 %1 +} -- cgit v1.1