mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-12 18:10:29 +02:00
27 lines
269 B
ObjectPascal
27 lines
269 B
ObjectPascal
{ %fail }
|
|
|
|
program setcrash;
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
uses
|
|
Classes, SysUtils;
|
|
|
|
var
|
|
AString: String='blabla';
|
|
|
|
procedure GetKey(var Key: Char);
|
|
begin
|
|
if Key in ['c', AString] then
|
|
writeln('OK');
|
|
end;
|
|
|
|
var
|
|
AKey: Char;
|
|
begin
|
|
AKey := 'c';
|
|
GetKey(AKey);
|
|
end.
|
|
|
|
|