...
This commit is contained in:
10
examples/array/main.nub
Normal file
10
examples/array/main.nub
Normal file
@@ -0,0 +1,10 @@
|
||||
module "main"
|
||||
|
||||
extern "puts" func puts(text: cstring)
|
||||
|
||||
extern "main" func main(argc: i64, argv: [?]cstring): i64
|
||||
{
|
||||
let x: [?]i32 = [10]i32
|
||||
x[0] = 23
|
||||
return 0
|
||||
}
|
||||
5
examples/array/makefile
Normal file
5
examples/array/makefile
Normal file
@@ -0,0 +1,5 @@
|
||||
.build/out: main.nub
|
||||
nubc main.nub
|
||||
|
||||
clean:
|
||||
@rm -r .build 2>/dev/null || true
|
||||
Reference in New Issue
Block a user