1 ; Zero byte allocas should be deleted.
3 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
10 call void(...)* %use([0 x int] *%X)
11 %Y = alloca int, uint 0
12 call void(...)* %use(int* %Y)
14 call void(...)* %use({}* %Z)
19 %A = alloca int ;; dead.
20 store int 123, int* %A
25 %A = alloca {int} ;; dead.
26 %B = getelementptr {int}* %A, int 0, uint 0
27 store int 123, int* %B