diff options
Diffstat (limited to 'test/Transforms/GlobalDCE/2009-01-05-DeadAliases.ll')
-rw-r--r-- | test/Transforms/GlobalDCE/2009-01-05-DeadAliases.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Transforms/GlobalDCE/2009-01-05-DeadAliases.ll b/test/Transforms/GlobalDCE/2009-01-05-DeadAliases.ll new file mode 100644 index 0000000..6658cee --- /dev/null +++ b/test/Transforms/GlobalDCE/2009-01-05-DeadAliases.ll @@ -0,0 +1,8 @@ +; RUN: opt < %s -globaldce -S | not grep @D +; RUN: opt < %s -globaldce -S | 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 |