diff options
-rw-r--r-- | test/Transforms/InstCombine/2003-10-23-InstcombineNullFail.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/2003-10-23-InstcombineNullFail.ll b/test/Transforms/InstCombine/2003-10-23-InstcombineNullFail.ll new file mode 100644 index 0000000000..ec1751cf4a --- /dev/null +++ b/test/Transforms/InstCombine/2003-10-23-InstcombineNullFail.ll @@ -0,0 +1,10 @@ +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep false +%X = type { [10 x int], float } + +implementation + +bool %test() { + %A = getelementptr %X* null, long 0, ubyte 0, long 0 + %B = setne int* %A, null + ret bool %B +} |