llvm-6502/test/Transforms/Internalize/2009-01-05-InternalizeAliases.ll
Rafael Espindola e5551ed9ce Change the internalize pass to internalize all symbols when given an empty
list of externals. This makes sense since a shared library with no symbols
can still be useful if it has static constructors.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166795 91177308-0d34-0410-b5e6-96231b3b80d8
2012-10-26 18:47:48 +00:00

11 lines
208 B
LLVM

; RUN: opt < %s -internalize -internalize-public-api-list main -S | grep internal | count 3
@A = global i32 0
@B = alias i32* @A
@C = alias i32* @B
define i32 @main() {
%tmp = load i32* @C
ret i32 %tmp
}