blob: 8e47ac94d6907f934a2c6ccf33a573e6e1f1c149 [file] [log] [blame]
Reid Spencer8373e672007-04-15 06:51:14 +00001; RUN: llvm-upgrade < %s | llvm-as | opt -argpromotion | llvm-dis | \
2; RUN: not grep {load int\* null}
Chris Lattner78d223e2004-11-13 23:28:39 +00003
4implementation
5
6internal int %callee(bool %C, int* %P) {
7 br bool %C, label %T, label %F
8T:
9 ret int 17
10F:
11 %X = load int* %P
12 ret int %X
13}
14
15int %foo() {
16 %X = call int %callee(bool true, int* null)
17 ret int %X
18}
19