mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-13 04:09:33 +02:00
* test for enum case, on Jonas' request
git-svn-id: trunk@10881 -
This commit is contained in:
parent
cf0cbc6a47
commit
046de405d1
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -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
17
tests/webtbs/tw11176.pp
Normal 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.
|
Loading…
Reference in New Issue
Block a user