2021-11-30 10:49:30 +01:00
|
|
|
fn test_fn() {
|
|
|
|
println('test fn')
|
|
|
|
}
|
2019-11-28 14:49:35 +01:00
|
|
|
|
2019-11-19 07:53:52 +01:00
|
|
|
fn main() {
|
2021-04-26 15:39:38 +02:00
|
|
|
println('native test')
|
2021-11-30 10:49:30 +01:00
|
|
|
mut i := 0
|
|
|
|
for i < 5 {
|
|
|
|
println('Hello world from V native machine code generator, in a while style for loop!')
|
|
|
|
i++
|
|
|
|
}
|
2021-04-20 16:16:35 +02:00
|
|
|
for _ in 1 .. 5 {
|
2021-11-30 10:49:30 +01:00
|
|
|
println('Hello world from V native machine code generator, in a range loop!')
|
2019-11-19 07:53:52 +01:00
|
|
|
}
|
|
|
|
println('Hello again!')
|
2021-11-30 10:49:30 +01:00
|
|
|
test_fn()
|
2019-11-29 10:33:04 +01:00
|
|
|
println('done')
|
2019-11-19 07:53:52 +01:00
|
|
|
}
|