Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-upgrade < %s | llvm-as | opt -scalarrepl -disable-output |
| 2 | |
| 3 | void %output_toc() { |
| 4 | entry: |
| 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 | |
| 14 | return: ; No predecessors! |
| 15 | ret void |
| 16 | } |
| 17 | |
| 18 | declare void %abort() |