aboutsummaryrefslogtreecommitdiff
path: root/tests/data/parser/ok
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-01-11 20:01:12 +0000
committerAleksey Kladov <[email protected]>2018-01-11 20:01:12 +0000
commit9a8e9bc4c6339051ef260f7794603481b6ff0bf2 (patch)
treeb9d23b06feda7249873ca40c88419e1b5c5d9bd6 /tests/data/parser/ok
parent89699c4803a0d12155adf653742f463872667610 (diff)
G: item outer attributes
Diffstat (limited to 'tests/data/parser/ok')
-rw-r--r--tests/data/parser/ok/0011_outer_attribute.rs3
-rw-r--r--tests/data/parser/ok/0011_outer_attribute.txt29
2 files changed, 32 insertions, 0 deletions
diff --git a/tests/data/parser/ok/0011_outer_attribute.rs b/tests/data/parser/ok/0011_outer_attribute.rs
new file mode 100644
index 000000000..8b80c0d90
--- /dev/null
+++ b/tests/data/parser/ok/0011_outer_attribute.rs
@@ -0,0 +1,3 @@
1#[cfg(test)]
2#[ignore]
3fn foo() {}
diff --git a/tests/data/parser/ok/0011_outer_attribute.txt b/tests/data/parser/ok/0011_outer_attribute.txt
new file mode 100644
index 000000000..a790f4095
--- /dev/null
+++ b/tests/data/parser/ok/0011_outer_attribute.txt
@@ -0,0 +1,29 @@
1FILE@[0; 35)
2 ATTR@[0; 13)
3 POUND@[0; 1)
4 L_BRACK@[1; 2)
5 META_ITEM@[2; 11)
6 IDENT@[2; 5)
7 L_PAREN@[5; 6)
8 META_ITEM@[6; 10)
9 IDENT@[6; 10)
10 R_PAREN@[10; 11)
11 R_BRACK@[11; 12)
12 WHITESPACE@[12; 13)
13 ATTR@[13; 23)
14 POUND@[13; 14)
15 L_BRACK@[14; 15)
16 META_ITEM@[15; 21)
17 IDENT@[15; 21)
18 R_BRACK@[21; 22)
19 WHITESPACE@[22; 23)
20 FN_ITEM@[23; 35)
21 FN_KW@[23; 25)
22 WHITESPACE@[25; 26)
23 IDENT@[26; 29)
24 L_PAREN@[29; 30)
25 R_PAREN@[30; 31)
26 WHITESPACE@[31; 32)
27 L_CURLY@[32; 33)
28 R_CURLY@[33; 34)
29 WHITESPACE@[34; 35)