Gitly
English
Русский
Español
日本語
中文
Português
Log in
Register
v2
/
vlib
/
v
/
tests
/
printing
/
print_address_of_reference_struct_test.v
11
lines
·
10
sloc
·
164 bytes
·
6488041a749df9762348d019c4223908c476f2e2
Raw
1
struct
Foo {
2
abc int
3
}
4
5
fn
test_print_address_of_reference_struct() {
6
foo := Foo{}
7
foo_ptr := &foo
8
println(
'${foo_ptr:p}'
)
9
println(
'${&foo:p}'
)
10
assert
true
11
}
12