aboutsummaryrefslogtreecommitdiff
path: root/tests/data/parser/err
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-01-07 12:34:11 +0000
committerAleksey Kladov <[email protected]>2018-01-07 12:34:11 +0000
commit7c6f0f9128665c1a605caaa552347b936578f952 (patch)
treee46900ddc24786364a767b35c78c0df588ab0541 /tests/data/parser/err
parent9e4052cc2ee12751ba94909ff479bd03df141ac4 (diff)
G: shebang
Diffstat (limited to 'tests/data/parser/err')
-rw-r--r--tests/data/parser/err/0002_duplicate_shebang.rs2
-rw-r--r--tests/data/parser/err/0002_duplicate_shebang.txt7
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/data/parser/err/0002_duplicate_shebang.rs b/tests/data/parser/err/0002_duplicate_shebang.rs
new file mode 100644
index 000000000..48a3a3980
--- /dev/null
+++ b/tests/data/parser/err/0002_duplicate_shebang.rs
@@ -0,0 +1,2 @@
1#!/use/bin/env rusti
2#!/use/bin/env rusti
diff --git a/tests/data/parser/err/0002_duplicate_shebang.txt b/tests/data/parser/err/0002_duplicate_shebang.txt
new file mode 100644
index 000000000..e7cf7187d
--- /dev/null
+++ b/tests/data/parser/err/0002_duplicate_shebang.txt
@@ -0,0 +1,7 @@
1FILE@[0; 42)
2 SHEBANG@[0; 20)
3 ERROR@[20; 42)
4 err: `expected item`
5 WHITESPACE@[20; 21)
6 SHEBANG@[21; 41)
7 WHITESPACE@[41; 42)