ci: fix static_vars_in_translated_mode.vv

pull/9017/head
Delyan Angelov 2021-02-28 18:55:21 +02:00
parent 5e87eeb864
commit e564269477
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 6 additions and 5 deletions

View File

@ -1,12 +1,13 @@
[unsafe]
fn counter() int { fn counter() int {
mut static icounter := 0 static mut icounter := 0
icounter++ icounter++
return icounter return icounter
} }
fn main() { fn main() {
println(counter()) println(unsafe { counter() })
println(counter()) println(unsafe { counter() })
println(counter()) println(unsafe { counter() })
println(counter()) println(unsafe { counter() })
} }