Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 1 | ; RUN: llvm-upgrade < %s | llvm-as | opt -globalopt | llvm-dis | not grep store |
| 2 | |
| 3 | %llvm.global_ctors = appending global [1 x { int, void ()* }] [ { int, void ()* } { int 65535, void ()* %_GLOBAL__I__Z3foov } ] ; <[1 x { int, void ()* }]*> [#uses=0] |
| 4 | %X.0 = internal global int undef ; <int*> [#uses=2] |
| 5 | |
| 6 | implementation ; Functions: |
| 7 | |
| 8 | int %_Z3foov() { |
| 9 | entry: |
| 10 | %tmp.1 = load int* %X.0 ; <int> [#uses=1] |
| 11 | ret int %tmp.1 |
| 12 | } |
| 13 | |
| 14 | internal void %_GLOBAL__I__Z3foov() { |
| 15 | entry: |
| 16 | store int 1, int* %X.0 |
| 17 | ret void |
| 18 | } |