Added struct lifetime test
This commit is contained in:
8
tests/programs/struct-lifetime.q
Normal file
8
tests/programs/struct-lifetime.q
Normal file
@ -0,0 +1,8 @@
|
||||
main() {
|
||||
c := new(Counter)
|
||||
c.value += 16
|
||||
}
|
||||
|
||||
struct Counter {
|
||||
value int
|
||||
}
|
Reference in New Issue
Block a user