1 ; Zero byte allocas should be deleted.
3 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | not grep alloca
8 call void(...)* %use([0 x int] *%X)
9 %Y = alloca int, uint 0
10 call void(...)* %use(int* %Y)
12 call void(...)* %use({}* %Z)
17 %A = alloca int ;; dead.
18 store int 123, int* %A
23 %A = alloca {int} ;; dead.
24 %B = getelementptr {int}* %A, int 0, uint 0
25 store int 123, int* %B