blob: 48d7688bcc62b399ceb935c4d7928af7106d1e48 [file] [log] [blame]
Chris Lattner00af1172002-12-04 17:00:25 +00001
2%X = global int 7
Chris Lattner4461f542002-12-04 23:51:44 +00003%msg = internal global [13 x sbyte] c"Hello World\0A\00"
Chris Lattner00af1172002-12-04 17:00:25 +00004
5
6implementation
7
8declare void %printf([13 x sbyte]*)
9
10void %bar() {
11 call void %printf([13 x sbyte]* %msg)
12 ret void
13}
14
Misha Brukmane78dba82002-12-04 23:58:41 +000015int %main() {
Chris Lattner00af1172002-12-04 17:00:25 +000016 call void %bar()
Misha Brukmane78dba82002-12-04 23:58:41 +000017 ret int 0
Chris Lattner00af1172002-12-04 17:00:25 +000018}
19