1; RUN: opt < %s -globalopt -disable-output
2; PR579
3
4@g_40507551 = internal global i16 31038 ; <i16*> [#uses=1]
5
6define void @main() {
7 %tmp.4.i.1 = load i8* getelementptr (i8* bitcast (i16* @g_40507551 to i8*), i32 1) ; <i8> [#uses=0]
8 ret void
9}
10
11