projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
675bb3d829f777bafb31e5c353ae3c234cd18636
[oota-llvm.git]
/
test
/
Transforms
/
RaiseAllocations
/
2007-10-17-InvokeFree.ll
1
; RUN: opt < %s -raiseallocs -stats -disable-output |& \
2
; RUN: not grep {Number of allocations raised}
3
define void @foo() {
4
entry:
5
%buffer = alloca i16*
6
%tmp = load i16** %buffer, align 8
7
invoke i32(...)* @free(i16* %tmp)
8
to label %invcont unwind label %unwind
9
invcont:
10
br label %finally
11
unwind:
12
br label %finally
13
finally:
14
ret void
15
}
16
declare i32 @free(...)
17