mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-19 01:13:25 +00:00
e9789ef994
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17536 91177308-0d34-0410-b5e6-96231b3b80d8
23 lines
320 B
LLVM
23 lines
320 B
LLVM
; RUN: llvm-as -f %s -o %t.bc
|
|
; RUN: lli %t.bc > /dev/null
|
|
|
|
|
|
%X = global int 7
|
|
%msg = internal global [13 x sbyte] c"Hello World\0A\00"
|
|
|
|
|
|
implementation
|
|
|
|
declare void %printf([13 x sbyte]*)
|
|
|
|
void %bar() {
|
|
call void %printf([13 x sbyte]* %msg)
|
|
ret void
|
|
}
|
|
|
|
int %main() {
|
|
call void %bar()
|
|
ret int 0
|
|
}
|
|
|