Gitly
English
Русский
Español
日本語
中文
Português
Log in
Register
v2
/
vlib
/
v
/
tests
/
project_issue_15811
/
b
/
b.c.v
18
lines
·
14
sloc
·
178 bytes
·
17228e2121f47dd31e6d5845c98680234fc29c64
Raw
1
module
b
2
3
pub
fn
take(x &C.dupe) int {
4
return
x.new
5
}
6
7
@[typedef]
8
pub
struct
C.dupe {
9
new int
10
}
11
12
pub
type
Dupe = C.dupe
13
14
pub
fn
make() &C.dupe {
15
return
&C.dupe{
16
new: 1
17
}
18
}
19