...
This commit is contained in:
@@ -2,16 +2,22 @@ module "main"
|
||||
|
||||
extern "puts" func puts(text: cstring)
|
||||
|
||||
struct X
|
||||
{
|
||||
points: []i32
|
||||
}
|
||||
|
||||
extern "main" func main(argc: i64, argv: [?]cstring): i64
|
||||
{
|
||||
let names: []cstring = ["test", "test2"]
|
||||
let f: []cstring = ["1", "2", "3"]
|
||||
|
||||
puts(names[0])
|
||||
puts(names[1])
|
||||
puts(f[0])
|
||||
puts(f[1])
|
||||
puts(f[2])
|
||||
|
||||
for name, i in names
|
||||
for num in f
|
||||
{
|
||||
puts(name)
|
||||
puts(num)
|
||||
}
|
||||
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user