Chris Lattner | 00af117 | 2002-12-04 17:00:25 +0000 | [diff] [blame^] | 1 | |
2 | %X = global int 7 | ||||
3 | %msg = internal global [13 x sbyte] c"Hello World\0D\00" | ||||
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 | |||||
15 | void %main() { | ||||
16 | call void %bar() | ||||
17 | ret void | ||||
18 | } | ||||
19 |