This commit is contained in:
nub31
2025-05-17 18:51:51 +02:00
parent 97611317f7
commit 007a4f03ac
3 changed files with 56 additions and 31 deletions

View File

@@ -1,6 +1,15 @@
import c
struct Test {
text: ^string
}
global func main(argc: i64, argv: i64) {
x = "TEST"
printf("%s\n", ^&x)
text = "test"
x = new Test {
text = &text
}
printf("%s\n", x.text^)
}