xref: /llvm-project/llvm/test/Transforms/GlobalOpt/2005-09-27-Crash.ll (revision d586bd5ca231a6022f439d4c6e43cfeeb53eb1d6)
1; RUN: opt < %s -passes=globalopt -disable-output
2        %RPyString = type { i32, %arraytype.Char }
3        %arraytype.Char = type { i32, [0 x i8] }
4        %arraytype.Signed = type { i32, [0 x i32] }
5        %functiontype.1 = type { ptr}
6        %structtype.test = type { i32, %arraytype.Signed }
7@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]
8
9define fastcc void @pypy_array_constant() {
10block0:
11        %tmp.9 = getelementptr %structtype.test, ptr @structinstance.test, i32 0, i32 0          ; <ptr> [#uses=0]
12        ret void
13}
14
15define fastcc void @new.varsizestruct.rpy_string() {
16        unreachable
17}
18
19define void @__entrypoint__pypy_array_constant() {
20        call fastcc void @pypy_array_constant( )
21        ret void
22}
23
24define void @__entrypoint__raised_LLVMException() {
25        ret void
26}
27
28