18ebb3eacSBjorn Pettersson; RUN: opt < %s -passes=globalopt -disable-output 2cee313d2SEric Christopher %RPyString = type { i32, %arraytype.Char } 3cee313d2SEric Christopher %arraytype.Char = type { i32, [0 x i8] } 4cee313d2SEric Christopher %arraytype.Signed = type { i32, [0 x i32] } 5*d586bd5cSNikita Popov %functiontype.1 = type { ptr} 6cee313d2SEric Christopher %structtype.test = type { i32, %arraytype.Signed } 7*d586bd5cSNikita Popov@structinstance.test = internal global { i32, { i32, [2 x i32] } } { i32 41, { i32, [2 x i32] } { i32 2, [2 x i32] [ i32 100, i32 101 ] } } ; <ptr> [#uses=1] 8cee313d2SEric Christopher 9cee313d2SEric Christopherdefine fastcc void @pypy_array_constant() { 10cee313d2SEric Christopherblock0: 11*d586bd5cSNikita Popov %tmp.9 = getelementptr %structtype.test, ptr @structinstance.test, i32 0, i32 0 ; <ptr> [#uses=0] 12cee313d2SEric Christopher ret void 13cee313d2SEric Christopher} 14cee313d2SEric Christopher 15cee313d2SEric Christopherdefine fastcc void @new.varsizestruct.rpy_string() { 16cee313d2SEric Christopher unreachable 17cee313d2SEric Christopher} 18cee313d2SEric Christopher 19cee313d2SEric Christopherdefine void @__entrypoint__pypy_array_constant() { 20cee313d2SEric Christopher call fastcc void @pypy_array_constant( ) 21cee313d2SEric Christopher ret void 22cee313d2SEric Christopher} 23cee313d2SEric Christopher 24cee313d2SEric Christopherdefine void @__entrypoint__raised_LLVMException() { 25cee313d2SEric Christopher ret void 26cee313d2SEric Christopher} 27cee313d2SEric Christopher 28