v2 / vlib / v / gen / c / testdata / export_and_weak.c.must_have
13 lines · 10 sloc · 397 bytes · e317c634bb19c691865e02adaa4467e92d11c64e
Raw
1VV_LOC int main__my_other_fn(void);
2VV_EXP VWEAK int wxyz(void); // exported fn main.my_other_fn
3VWEAK int wxyz(void) {
4VV_LOC int main__my_other_fn(void) {
5
6VV_LOC int main__my_fn(void);
7VV_EXP int abcd(void); // exported fn main.my_fn
8int abcd(void) {
9VV_LOC int main__my_fn(void) {
10
11 builtin__println(builtin__int_str(main__my_fn()));
12 builtin__println(builtin__int_str(main__my_other_fn()));
13
14