mirror of
https://codeberg.org/ProgramSnail/lang_2023.git
synced 2025-12-06 06:58:45 +00:00
debug
This commit is contained in:
parent
582ad5668e
commit
0d62ae0814
29 changed files with 99479 additions and 1166 deletions
9
tests/memory.lang
Normal file
9
tests/memory.lang
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
struct StructWithRef =
|
||||
& @Int._ // unique pointer to any-sized array (default size is zero ??)
|
||||
|
||||
decl test_memory : Unit -> Unit
|
||||
def test_memory = {
|
||||
const @unique_ref1 <- @5 // move unique reference
|
||||
var @unique_ref2 <- @(Array.of 1 2 3)
|
||||
// ?? reference to constant value ??
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue