diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-03-07 21:28:14 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-03-07 21:28:14 +0000 |
commit | e390b3245f00627eb5c5bde5eb4ff6b6ff7c752d (patch) | |
tree | 63bb889937cd04891cf2e1849ccf84e60e8e7b7a /test/Transforms/Internalize | |
parent | e54f64899fbaaa95fc3241236aabfaa37003a658 (diff) | |
download | external_llvm-e390b3245f00627eb5c5bde5eb4ff6b6ff7c752d.zip external_llvm-e390b3245f00627eb5c5bde5eb4ff6b6ff7c752d.tar.gz external_llvm-e390b3245f00627eb5c5bde5eb4ff6b6ff7c752d.tar.bz2 |
Add test for r127138.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127172 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/Internalize')
-rw-r--r-- | test/Transforms/Internalize/available_externally.ll | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/Transforms/Internalize/available_externally.ll b/test/Transforms/Internalize/available_externally.ll new file mode 100644 index 0000000..a2cf23f --- /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 +} |