v/examples/native/hello_world.v

19 lines
355 B
V
Raw Normal View History

fn test_fn() {
println('test fn')
}
2019-11-19 07:53:52 +01:00
fn main() {
println('native test')
mut i := 0
for i < 5 {
println('Hello world from V native machine code generator, in a while style for loop!')
i++
}
for _ in 1 .. 5 {
println('Hello world from V native machine code generator, in a range loop!')
2019-11-19 07:53:52 +01:00
}
println('Hello again!')
test_fn()
2019-11-29 10:33:04 +01:00
println('done')
2019-11-19 07:53:52 +01:00
}