New testcase: do not DCE volatile loads!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8421 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-09-09 18:15:45 +00:00
parent 30e2d91b47
commit ffd340c6b6

View File

@ -0,0 +1,5 @@
; RUN: as < %s | opt -instcombine | dis | grep load
void %test(int* %P) {
%X = volatile load int* %P ; Dead but not deletable!
ret void
}