Added some tests for the type-checking of poison statements in Rain

This commit is contained in:
Neil Brown 2008-09-12 14:37:11 +00:00
parent 00a719a451
commit ec25ff9901

View File

@ -92,4 +92,17 @@ cb ! b;
?cb ? true;
%FAIL Invalid channel comm -- bad recv #3
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;
%