Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-upgrade < %s | llvm-as | opt -inline -disable-output |
| 2 | |
| 3 | implementation |
| 4 | |
| 5 | int %main() { |
| 6 | entry: |
| 7 | invoke void %__main( ) |
| 8 | to label %Call2Invoke except label %LongJmpBlkPre |
| 9 | |
| 10 | Call2Invoke: |
| 11 | br label %LongJmpBlkPre |
| 12 | |
| 13 | LongJmpBlkPre: |
| 14 | %i.3 = phi uint [ 0, %entry ], [ 0, %Call2Invoke ] ; <uint> [#uses=0] |
| 15 | ret int 0 |
| 16 | } |
| 17 | |
| 18 | void %__main() { |
| 19 | call void %__llvm_getGlobalCtors( ) |
| 20 | call void %__llvm_getGlobalDtors( ) |
| 21 | ret void |
| 22 | } |
| 23 | |
| 24 | declare void %__llvm_getGlobalCtors() |
| 25 | |
| 26 | declare void %__llvm_getGlobalDtors() |