This commit is contained in:
nub31
2025-10-22 11:22:06 +02:00
parent 8709eeb09d
commit e2da6cccff
9 changed files with 91 additions and 233 deletions

View File

@@ -4,7 +4,6 @@ extern "puts" func puts(text: cstring)
extern "main" func main(argc: i64, argv: [?]cstring): i64
{
let x = [10]i32
x[0] = 23
return 0
let x = [23]i32
return x[0]
}

View File

@@ -2,9 +2,9 @@ module "main"
extern "puts" func puts(text: cstring)
extern "main" func main(args: []cstring): i64
func main(argc: i32, argv: [?]cstring): i32
{
defer puts("Goodybye World")
puts("Hello World")
defer puts("Bye cruel world!")
puts("Hello world!")
return 0
}