From e390b3245f00627eb5c5bde5eb4ff6b6ff7c752d Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Mon, 7 Mar 2011 21:28:14 +0000 Subject: [PATCH] Add test for r127138. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127172 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../Internalize/available_externally.ll | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/Transforms/Internalize/available_externally.ll diff --git a/test/Transforms/Internalize/available_externally.ll b/test/Transforms/Internalize/available_externally.ll new file mode 100644 index 00000000000..a2cf23fb390 --- /dev/null +++ b/test/Transforms/Internalize/available_externally.ll @@ -0,0 +1,16 @@ +; RUN: opt < %s -internalize -internalize-public-api-list foo -S | FileCheck %s + +; CHECK: define void @foo +define void @foo() { + ret void +} + +; CHECK: define internal void @zed +define void @zed() { + ret void +} + +; CHECK: define available_externally void @bar +define available_externally void @bar() { + ret void +}