aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/tests/data/parser/inline/ok
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2019-03-04 12:49:37 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2019-03-04 12:49:37 +0000
commitdc8bcc1e42b573a8c315dd42a43c0fc4d5bfa8f8 (patch)
tree690bdd424bc2315e7a4479e1d1d3600ffe2160e2 /crates/ra_syntax/tests/data/parser/inline/ok
parent8a5d48b6c6e180017e47175a07f77f4f7ec6549d (diff)
parenta99b1db49f9040f2aec9e72b2c68ec8153210b49 (diff)
Merge #926
926: allow vararg functions r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_syntax/tests/data/parser/inline/ok')
-rw-r--r--crates/ra_syntax/tests/data/parser/inline/ok/0123_param_list_vararg.rs1
-rw-r--r--crates/ra_syntax/tests/data/parser/inline/ok/0123_param_list_vararg.txt49
2 files changed, 50 insertions, 0 deletions
diff --git a/crates/ra_syntax/tests/data/parser/inline/ok/0123_param_list_vararg.rs b/crates/ra_syntax/tests/data/parser/inline/ok/0123_param_list_vararg.rs
new file mode 100644
index 000000000..c59addaf4
--- /dev/null
+++ b/crates/ra_syntax/tests/data/parser/inline/ok/0123_param_list_vararg.rs
@@ -0,0 +1 @@
extern "C" { fn printf(format: *const i8, ...) -> i32; }
diff --git a/crates/ra_syntax/tests/data/parser/inline/ok/0123_param_list_vararg.txt b/crates/ra_syntax/tests/data/parser/inline/ok/0123_param_list_vararg.txt
new file mode 100644
index 000000000..8bb9949ab
--- /dev/null
+++ b/crates/ra_syntax/tests/data/parser/inline/ok/0123_param_list_vararg.txt
@@ -0,0 +1,49 @@
1SOURCE_FILE@[0; 57)
2 EXTERN_BLOCK@[0; 56)
3 ABI@[0; 10)
4 EXTERN_KW@[0; 6)
5 WHITESPACE@[6; 7)
6 STRING@[7; 10)
7 WHITESPACE@[10; 11)
8 EXTERN_ITEM_LIST@[11; 56)
9 L_CURLY@[11; 12)
10 WHITESPACE@[12; 13)
11 FN_DEF@[13; 54)
12 FN_KW@[13; 15)
13 WHITESPACE@[15; 16)
14 NAME@[16; 22)
15 IDENT@[16; 22) "printf"
16 PARAM_LIST@[22; 46)
17 L_PAREN@[22; 23)
18 PARAM@[23; 40)
19 BIND_PAT@[23; 29)
20 NAME@[23; 29)
21 IDENT@[23; 29) "format"
22 COLON@[29; 30)
23 WHITESPACE@[30; 31)
24 POINTER_TYPE@[31; 40)
25 STAR@[31; 32)
26 CONST_KW@[32; 37)
27 WHITESPACE@[37; 38)
28 PATH_TYPE@[38; 40)
29 PATH@[38; 40)
30 PATH_SEGMENT@[38; 40)
31 NAME_REF@[38; 40)
32 IDENT@[38; 40) "i8"
33 COMMA@[40; 41)
34 WHITESPACE@[41; 42)
35 DOTDOTDOT@[42; 45)
36 R_PAREN@[45; 46)
37 WHITESPACE@[46; 47)
38 RET_TYPE@[47; 53)
39 THIN_ARROW@[47; 49)
40 WHITESPACE@[49; 50)
41 PATH_TYPE@[50; 53)
42 PATH@[50; 53)
43 PATH_SEGMENT@[50; 53)
44 NAME_REF@[50; 53)
45 IDENT@[50; 53) "i32"
46 SEMI@[53; 54)
47 WHITESPACE@[54; 55)
48 R_CURLY@[55; 56)
49 WHITESPACE@[56; 57)