v/examples/x64/hello_world.v

22 lines
285 B
V
Raw Normal View History

2020-06-02 16:09:41 +02:00
//fn println(s string) { }
2020-01-01 22:34:46 +01:00
//fn test_fn() {
//println('test fn')
//}
2019-11-19 07:53:52 +01:00
fn main() {
println('x64 test')
2020-01-01 22:34:46 +01:00
//i := 0
//for i < 5 {
for _ in 1..5 {
2019-11-19 07:53:52 +01:00
println('Hello world from V x64 machine code generator!')
2020-01-01 22:34:46 +01:00
//i++
2019-11-19 07:53:52 +01:00
}
2020-01-01 22:34:46 +01:00
/*
2019-11-19 07:53:52 +01:00
println('Hello again!')
2019-11-29 10:33:04 +01:00
//test_fn()
println('done')
2020-01-01 22:34:46 +01:00
*/
2019-11-19 07:53:52 +01:00
}