mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-10-31 09:11:13 +00:00
d184c67b52
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9533 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
359 B
LLVM
16 lines
359 B
LLVM
; RUN: PATH=/usr/bin:/bin/:${PATH}
|
|
; RUN: export PATH
|
|
; RUN: bugpoint %s -dce -bugpoint-deletecalls -simplifycfg
|
|
|
|
%.LC0 = internal global [13 x sbyte] c"Hello World\0A\00"
|
|
|
|
implementation
|
|
|
|
declare int %printf(sbyte*, ...)
|
|
|
|
int %main() {
|
|
call int(sbyte*, ...)* %printf( sbyte* getelementptr ([13 x sbyte]* %.LC0, long 0, long 0) )
|
|
ret int 0
|
|
}
|
|
|