v2 / vlib / v / fmt / tests / newlines_keep.vv
32 lines · 23 sloc · 438 bytes · 757929392e0e7a75fc1272116460981e589737d5
Raw
1// Module with attribute
2@[manualfree]
3module websocket
4
5fn C.no_body_function()
6fn C.another_one(x int)
7
8fn C.separated_from_my_body_and_the_above()
9
10fn main() {}
11
12// This should stay between both functions
13
14fn x() {}
15
16// doc comment above an attributed function
17@[inline]
18fn y_with_attr() {
19}
20
21// doc comment above an attributed struct
22@[typedef]
23struct FooWithAttr {
24}
25
26fn between_assembly_blocks() {
27 asm amd64 {
28 }
29
30 asm i386 {
31 }
32}
33