Merging r258325:
[oota-llvm.git] / test / Transforms / InstCombine / 2012-01-11-OpaqueBitcastCrash.ll
1 ; RUN: opt < %s -instcombine -disable-output
2
3 %opaque_struct = type opaque
4
5 @G = external global [0 x %opaque_struct]
6
7 declare void @foo(%opaque_struct*)
8
9 define void @bar() {
10   call void @foo(%opaque_struct* bitcast ([0 x %opaque_struct]* @G to %opaque_struct*))
11   ret void
12 }