diff options
| -rw-r--r-- | llvm/test/Regression/Transforms/InstCombine/alloca.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/Regression/Transforms/InstCombine/alloca.ll b/llvm/test/Regression/Transforms/InstCombine/alloca.ll index c5d78182297..8ce7b65b0c0 100644 --- a/llvm/test/Regression/Transforms/InstCombine/alloca.ll +++ b/llvm/test/Regression/Transforms/InstCombine/alloca.ll @@ -12,3 +12,16 @@ void %test() { call void(...)* %use({}* %Z) ret void } + +void %test2() { + %A = alloca int ;; dead. + store int 123, int* %A + ret void +} + +void %test3() { + %A = alloca {int} ;; dead. + %B = getelementptr {int}* %A, int 0, uint 0 + store int 123, int* %B + ret void +} |

