mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-08 19:25:47 +00:00
Somehow "simplest" test became a hello world test. Rectify this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7353 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
19
test/ExecutionEngine/hello2.ll
Normal file
19
test/ExecutionEngine/hello2.ll
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
|
||||||
|
%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
|
||||||
|
}
|
||||||
|
|
@@ -1,19 +1,7 @@
|
|||||||
|
|
||||||
%X = global int 7
|
|
||||||
%msg = internal global [13 x sbyte] c"Hello World\0A\00"
|
|
||||||
|
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
declare void %printf([13 x sbyte]*)
|
|
||||||
|
|
||||||
void %bar() {
|
|
||||||
call void %printf([13 x sbyte]* %msg)
|
|
||||||
ret void
|
|
||||||
}
|
|
||||||
|
|
||||||
int %main() {
|
int %main() {
|
||||||
call void %bar()
|
|
||||||
ret int 0
|
ret int 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user