Chris Lattner | 00af117 | 2002-12-04 17:00:25 +0000 | [diff] [blame] | 1 | |
2 | %X = global int 7 | ||||
Chris Lattner | 4461f54 | 2002-12-04 23:51:44 +0000 | [diff] [blame] | 3 | %msg = internal global [13 x sbyte] c"Hello World\0A\00" |
Chris Lattner | 00af117 | 2002-12-04 17:00:25 +0000 | [diff] [blame] | 4 | |
5 | |||||
6 | implementation | ||||
7 | |||||
8 | declare void %printf([13 x sbyte]*) | ||||
9 | |||||
10 | void %bar() { | ||||
11 | call void %printf([13 x sbyte]* %msg) | ||||
12 | ret void | ||||
13 | } | ||||
14 | |||||
Misha Brukman | e78dba8 | 2002-12-04 23:58:41 +0000 | [diff] [blame^] | 15 | int %main() { |
Chris Lattner | 00af117 | 2002-12-04 17:00:25 +0000 | [diff] [blame] | 16 | call void %bar() |
Misha Brukman | e78dba8 | 2002-12-04 23:58:41 +0000 | [diff] [blame^] | 17 | ret int 0 |
Chris Lattner | 00af117 | 2002-12-04 17:00:25 +0000 | [diff] [blame] | 18 | } |
19 |