aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/DeadStoreElimination/free.llx
blob: 3f0db04f7b9e630806bf39890a5376f3fdbf22c9 (plain)
1
2
3
4
5
6
7
8
; RUN: llvm-upgrade < %s | llvm-as | opt -dse | llvm-dis | not grep DEAD

void %test(int* %Q, int* %P) {
	%DEAD = load int* %Q
	store int %DEAD, int* %P
	free int* %P
	ret void
}