mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 13:39:35 +02:00
22 lines
384 B
ObjectPascal
22 lines
384 B
ObjectPascal
{%fail}
|
|
{
|
|
This program should fail compilation since array of const
|
|
with cdecl modifier can only be used on last parameter of
|
|
routine
|
|
}
|
|
|
|
procedure proc_const_smallarray_const_2(const arr : array of const; b: byte);cdecl;
|
|
begin
|
|
end;
|
|
|
|
|
|
Begin
|
|
end.
|
|
|
|
{
|
|
$Log$
|
|
Revision 1.1 2002-11-09 21:57:57 carl
|
|
+ added testing for cdecl and array of const. (should not compile)
|
|
|
|
}
|