-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #27: negative cases about scoping
- Loading branch information
Showing
10 changed files
with
98 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
unscoped_recv_at = proc(c : ?Int, d : !Int) | ||
@(proc(c) recv c (x : Int))(c). | ||
send d x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
unscoped_recv_slice = proc(c) (slice (c) 1 as _ (recv c (x : Int))). send c x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../all/unscoped_recv_at.ll |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../all/unscoped_recv_slice.ll |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
|
||
testname=unscoped_recv_at.t | ||
command=Ling | ||
args=( --check unscoped_recv_at.ll ) | ||
exit_code=1 | ||
stdin_file=/dev/null | ||
stdout_file=/dev/null | ||
stderr_file=stderr | ||
sources=( unscoped_recv_at.ll ) | ||
products=( ) | ||
|
||
# Environment variables: | ||
env_vars=( ) | ||
|
||
setup(){ | ||
: Perform here actions to be run before the tested program | ||
} | ||
|
||
munge(){ | ||
: Munge here the results of the tested program to ease the check | ||
} | ||
|
||
check(){ | ||
check_exit_code && | ||
check_stderr && | ||
check_stdout && | ||
check_products && | ||
: Perform here extra checks on the tested program | ||
} | ||
|
||
explain(){ | ||
explain_exit_code | ||
explain_stdout | ||
explain_stderr | ||
explain_products | ||
: Explain here more potential differences | ||
} | ||
|
||
teardown(){ | ||
: Undo here the actions of setup | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
While checking `unscoped_recv_at` | ||
unknown definition x | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../fixtures/all/unscoped_recv_at.ll |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
|
||
testname=unscoped_recv_slice.t | ||
command=Ling | ||
args=( --check unscoped_recv_slice.ll ) | ||
exit_code=1 | ||
stdin_file=/dev/null | ||
stdout_file=/dev/null | ||
stderr_file=stderr | ||
sources=( unscoped_recv_slice.ll ) | ||
products=( ) | ||
|
||
# Environment variables: | ||
env_vars=( ) | ||
|
||
setup(){ | ||
: Perform here actions to be run before the tested program | ||
} | ||
|
||
munge(){ | ||
: Munge here the results of the tested program to ease the check | ||
} | ||
|
||
check(){ | ||
check_exit_code && | ||
check_stderr && | ||
check_stdout && | ||
check_products && | ||
: Perform here extra checks on the tested program | ||
} | ||
|
||
explain(){ | ||
explain_exit_code | ||
explain_stdout | ||
explain_stderr | ||
explain_products | ||
: Explain here more potential differences | ||
} | ||
|
||
teardown(){ | ||
: Undo here the actions of setup | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
While checking `unscoped_recv_slice` | ||
unknown definition x | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../fixtures/all/unscoped_recv_slice.ll |