1 ; RUN: llvm-as < %s | llc -march=c
3 ; Indirect function call test... found by Joel & Brian
6 %taskArray = uninitialized global int*
9 %Y = add int %X, -1 ; <int>:1 [#uses=3]
10 %cast100 = cast int %Y to long ; <uint> [#uses=1]
11 %gep100 = getelementptr int** %taskArray, long %cast100 ; <int**> [#uses=1]
12 %fooPtr = load int** %gep100 ; <int*> [#uses=1]
13 %cast101 = cast int* %fooPtr to void (int)* ; <void (int)*> [#uses=1]
14 call void %cast101( int 1000 )