blob: d6055e2768f18bfc0da9ecfbfb59ddb5377d08ed [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-upgrade < %s | llvm-as | opt -argpromotion -instcombine | llvm-dis | not grep load
2
3%G1 = constant int 0
4%G2 = constant int* %G1
5
6implementation
7
8internal int %test(int **%X) {
9 %Y = load int** %X
10 %X = load int* %Y
11 ret int %X
12}
13
14int %caller(int** %P) {
15 %X = call int %test(int** %G2)
16 ret int %X
17}