aboutsummaryrefslogtreecommitdiff
path: root/tests/data/parser/ok
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-02-02 20:45:15 +0000
committerAleksey Kladov <[email protected]>2018-02-02 20:45:15 +0000
commit0000f4f4f2f32c6ff67db6cbc27e3a49c85f4b99 (patch)
tree44333026e9a488deef5ebc73eb6c8a277d1975dc /tests/data/parser/ok
parent049c9b60fb0c59625a37b0349aa27acaa3cf884a (diff)
G: static items
Diffstat (limited to 'tests/data/parser/ok')
-rw-r--r--tests/data/parser/ok/0023_static_items.rs2
-rw-r--r--tests/data/parser/ok/0023_static_items.txt31
2 files changed, 33 insertions, 0 deletions
diff --git a/tests/data/parser/ok/0023_static_items.rs b/tests/data/parser/ok/0023_static_items.rs
new file mode 100644
index 000000000..5fb92ce33
--- /dev/null
+++ b/tests/data/parser/ok/0023_static_items.rs
@@ -0,0 +1,2 @@
1static FOO: u32 = 1;
2static mut BAR: i32 = 92;
diff --git a/tests/data/parser/ok/0023_static_items.txt b/tests/data/parser/ok/0023_static_items.txt
new file mode 100644
index 000000000..7cd2228fa
--- /dev/null
+++ b/tests/data/parser/ok/0023_static_items.txt
@@ -0,0 +1,31 @@
1FILE@[0; 47)
2 STATIC_ITEM@[0; 21)
3 STATIC_KW@[0; 6)
4 WHITESPACE@[6; 7)
5 IDENT@[7; 10) "FOO"
6 COLON@[10; 11)
7 WHITESPACE@[11; 12)
8 IDENT@[12; 15) "u32"
9 WHITESPACE@[15; 16)
10 EQ@[16; 17)
11 LITERAL@[17; 19)
12 WHITESPACE@[17; 18)
13 INT_NUMBER@[18; 19)
14 SEMI@[19; 20)
15 WHITESPACE@[20; 21)
16 STATIC_ITEM@[21; 47)
17 STATIC_KW@[21; 27)
18 WHITESPACE@[27; 28)
19 MUT_KW@[28; 31)
20 WHITESPACE@[31; 32)
21 IDENT@[32; 35) "BAR"
22 COLON@[35; 36)
23 WHITESPACE@[36; 37)
24 IDENT@[37; 40) "i32"
25 WHITESPACE@[40; 41)
26 EQ@[41; 42)
27 LITERAL@[42; 45)
28 WHITESPACE@[42; 43)
29 INT_NUMBER@[43; 45)
30 SEMI@[45; 46)
31 WHITESPACE@[46; 47)