Gitly
English
Русский
Español
日本語
中文
Português
Log in
Register
v2
/
vlib
/
v
/
gen
/
c
/
testdata
/
volatile.vv
10
lines
·
9
sloc
·
195 bytes
·
d4290f0d2a11defd671999322c4a8f6b40ad9f92
Raw
1
struct Abc {
2
volatile a_volatile_field int
3
a_non_volatile_field int
4
}
5
6
mut volatile zzz := 123
7
mut volatile pzzz := &zzz
8
println(zzz)
9
println(unsafe { &int(voidptr(pzzz)) })
10
println(Abc{})
11