fpc/tests/tbf/tb0139.pp
fpc 790a4fe2d3 * log and id tags removed
git-svn-id: trunk@42 -
2005-05-21 09:42:41 +00:00

20 lines
413 B
ObjectPascal

{%fail}
{
This program should fail compilation since the high()
parameter cannot be used in a cdecl'ed function using
array of const, it uses the exact calling conventions
as a C compiler, and the length is not passed!
}
procedure proc_const_smallarray_const_2(const arr : array of const);cdecl;
var
i: integer;
begin
if high(arr)<0 then
WriteLn('hello world!');
end;
Begin
end.