Forbid arrays of function-type and structures with function-typed fields.
[llvm/avr.git] / test / Transforms / GVN / bitcast-of-call.ll
blob55b4b6e9d317db1c33727cb5d69fb81e7300958d
1 ; RUN: opt < %s -gvn -S | not grep tmp2
2 ; PR2213
4 define i32* @f(i8* %x) {
5 entry:
6         %tmp = call i8* @m( i32 12 )            ; <i8*> [#uses=2]
7         %tmp1 = bitcast i8* %tmp to i32*                ; <i32*> [#uses=0]
8         %tmp2 = bitcast i8* %tmp to i32*                ; <i32*> [#uses=0]
9         ret i32* %tmp2
12 declare i8* @m(i32)