* test for enum case, on Jonas' request

git-svn-id: trunk@10881 -
This commit is contained in:
marco 2008-05-04 18:31:33 +00:00
parent cf0cbc6a47
commit 046de405d1
2 changed files with 18 additions and 0 deletions

1
.gitattributes vendored
View File

@ -8169,6 +8169,7 @@ tests/webtbs/tw1111.pp svneol=native#text/plain
tests/webtbs/tw11139.pp svneol=native#text/plain
tests/webtbs/tw11169.pp svneol=native#text/plain
tests/webtbs/tw1117.pp svneol=native#text/plain
tests/webtbs/tw11176.pp svneol=native#text/plain
tests/webtbs/tw11216.pp svneol=native#text/plain
tests/webtbs/tw1122.pp svneol=native#text/plain
tests/webtbs/tw1123.pp svneol=native#text/plain

17
tests/webtbs/tw11176.pp Normal file
View File

@ -0,0 +1,17 @@
type
Tx = (one,two,three);
procedure error(number : longint);
begin
writeln('error ', number);
halt(number);
end;
var
a : Tx;
err : word;
begin
val('one', a, err);
if (err <> 0) or (a <> one) then error(1);
end.