New testcase: do not DCE volatile loads!

llvm-svn: 8421
This commit is contained in:
Chris Lattner 2003-09-09 18:15:45 +00:00
parent cd9b0df28e
commit 0df3e2e3c7

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
}