New testcase

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15231 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-07-26 06:11:42 +00:00
parent 61d462760b
commit a00064a383

View File

@ -0,0 +1,8 @@
; RUN: llvm-as < %s | opt -dse | llvm-dis | not grep DEAD
void %test(int* %Q) {
%P = alloca int
%DEAD = load int* %Q
store int %DEAD, int* %P ;; Alloca goes out of scope, dead store.
ret void
}