Added some tests for the type-checking of poison statements in Rain
This commit is contained in:
parent
00a719a451
commit
ec25ff9901
|
@ -92,4 +92,17 @@ cb ! b;
|
||||||
?cb ? true;
|
?cb ? true;
|
||||||
%FAIL Invalid channel comm -- bad recv #3
|
%FAIL Invalid channel comm -- bad recv #3
|
||||||
cb ? x;
|
cb ? x;
|
||||||
|
|
||||||
|
%PASS Valid poison
|
||||||
|
poison !cb;
|
||||||
|
poison !cx;
|
||||||
|
poison !cxi8;
|
||||||
|
poison ?cb;
|
||||||
|
poison ?cx;
|
||||||
|
poison ?cxi8;
|
||||||
|
%FAIL Poison non-channel
|
||||||
|
poison b;
|
||||||
|
%FAIL Poison indeterminate channel-end
|
||||||
|
poison cb;
|
||||||
|
|
||||||
%
|
%
|
||||||
|
|
Loading…
Reference in New Issue
Block a user