blob: a4d39334fa2dcc62496f6b0ff0346c77ab29399e [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-upgrade < %s | llvm-as | opt -scalarrepl -disable-output
2
3void %output_toc() {
4entry:
5 %buf = alloca [256 x sbyte], align 16 ; <[256 x sbyte]*> [#uses=1]
6 %name = alloca sbyte*, align 4 ; <sbyte**> [#uses=1]
7 %real_name = alloca sbyte*, align 4 ; <sbyte**> [#uses=0]
8 "alloca point" = cast int 0 to int ; <int> [#uses=0]
9 %buf = cast [256 x sbyte]* %buf to sbyte* ; <sbyte*> [#uses=1]
10 store sbyte* %buf, sbyte** %name
11 call void %abort( )
12 unreachable
13
14return: ; No predecessors!
15 ret void
16}
17
18declare void %abort()