1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 04:22:57 +02:00
llvm-mirror/test/Transforms/GlobalDCE/2009-01-05-DeadAliases.ll
Duncan Sands 3b98802e9a Delete unused global aliases with internal linkage.
In fact this also deletes those with linkonce linkage,
however this is currently dead because for the moment
aliases aren't allowed to have this linkage type.

llvm-svn: 61742
2009-01-05 20:37:33 +00:00

9 lines
248 B
LLVM

; RUN: llvm-as < %s | opt -globaldce | llvm-dis | not grep @D
; RUN: llvm-as < %s | opt -globaldce | llvm-dis | grep @L | count 3
@A = global i32 0
@D = alias internal i32* @A
@L1 = alias i32* @A
@L2 = alias internal i32* @L1
@L3 = alias i32* @L2