Gitly
English
Русский
Español
日本語
中文
Português
Log in
Register
v2
/
cmd
/
tools
/
vvet
/
tests
/
repeated_code.vv
16
lines
·
16
sloc
·
206 bytes
·
f75aa345809281fc4dcf038adbf5d4d2afe77bb7
Raw
1
// vtest vflags: -r
2
fn main() {
3
mut a := [0, 2, 4, 6]
4
if a[0] {
5
dump(a[0])
6
dump(a[0] + a[0])
7
if a[0] {
8
dump(a[0])
9
dump(a[0] + a[0])
10
}
11
if a[0] {
12
dump(a[0])
13
dump(a[0] + a[0])
14
}
15
}
16
}
17