1 ; RUN: opt < %s -instcombine -globaldce -S | \
4 ; Pulling the cast out of the load allows us to eliminate the load, and then
9 @Array = internal constant [1 x %op* (%op*)*] [ %op* (%op*)* @foo ] ; <[1 x %op* (%op*)*]*> [#uses=1]
11 define %op* @foo(%op* %X) {
15 define %unop* @caller(%op* %O) {
16 %tmp = load %unop* (%op*)** bitcast ([1 x %op* (%op*)*]* @Array to %unop* (%op*)**); <%unop* (%op*)*> [#uses=1]
17 %tmp.2 = call %unop* %tmp( %op* %O ) ; <%unop*> [#uses=1]