mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-26 00:03:54 +00:00
Bug Fixes: some assertions; variable inits;
Remove some dead code
This commit is contained in:
@@ -1,25 +1,3 @@
|
||||
#import "fmt.odin"
|
||||
#import "os.odin"
|
||||
#import "mem.odin"
|
||||
|
||||
|
||||
main :: proc() {
|
||||
y :: proc() -> (int, int) {
|
||||
return x()
|
||||
}
|
||||
x :: proc() -> (int, int) {
|
||||
return 1, 2
|
||||
}
|
||||
|
||||
fmt.println(y())
|
||||
|
||||
arena: mem.Arena
|
||||
mem.init_arena_from_context(^arena, 1000)
|
||||
defer mem.free_arena(^arena)
|
||||
|
||||
push_allocator mem.arena_allocator(^arena) {
|
||||
x := new(int)
|
||||
x^ = 1337
|
||||
fmt.println(x^)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user