diff --git a/test/Transforms/InstCombine/2003-09-09-VolatileLoadElim.ll b/test/Transforms/InstCombine/2003-09-09-VolatileLoadElim.ll new file mode 100644 index 00000000000..890d61e7ca2 --- /dev/null +++ b/test/Transforms/InstCombine/2003-09-09-VolatileLoadElim.ll @@ -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 +}