q/tests/programs/struct-lifetime.q

8 lines
75 B
Plaintext

main() {
c := new(Counter)
c.value += 16
}
struct Counter {
value int
}