36 lines
367 B
Plaintext
36 lines
367 B
Plaintext
module "main"
|
|
|
|
extern "puts" func puts(text: cstring)
|
|
|
|
struct Human
|
|
{
|
|
name: cstring
|
|
}
|
|
|
|
extern "main" func main(args: []cstring): i64
|
|
{
|
|
let x = [2]cstring
|
|
|
|
x[0] = "test1"
|
|
x[1] = "test2"
|
|
|
|
for u in x
|
|
{
|
|
puts(u)
|
|
}
|
|
|
|
let me: Human = {
|
|
name = "test"
|
|
}
|
|
|
|
puts(me.name)
|
|
|
|
test(32)
|
|
|
|
return 0
|
|
}
|
|
|
|
|
|
func test(x: u8)
|
|
{
|
|
} |