mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-01 02:10:19 +02:00
* new files
This commit is contained in:
parent
d61f29c799
commit
235989deb8
11
tests/tbf/tb0099.pp
Normal file
11
tests/tbf/tb0099.pp
Normal file
@ -0,0 +1,11 @@
|
||||
procedure p(a:array of char);
|
||||
begin
|
||||
end;
|
||||
|
||||
var
|
||||
s1 : ansistring;
|
||||
s2 : shortstring;
|
||||
begin
|
||||
p(s1);
|
||||
p(s2);
|
||||
end.
|
17
tests/webtbf/tw1316.pp
Normal file
17
tests/webtbf/tw1316.pp
Normal file
@ -0,0 +1,17 @@
|
||||
unit tw1316;
|
||||
interface
|
||||
|
||||
type
|
||||
searchrec=record
|
||||
l : longint;
|
||||
end;
|
||||
|
||||
operator [] (a,b:searchrec) r:boolean;
|
||||
|
||||
implementation
|
||||
|
||||
operator [] (a,b:searchrec) r:boolean;
|
||||
begin
|
||||
end;
|
||||
|
||||
end.
|
18
tests/webtbs/tw1318.pp
Normal file
18
tests/webtbs/tw1318.pp
Normal file
@ -0,0 +1,18 @@
|
||||
{ %VERSION=1.1 }
|
||||
|
||||
{$mode objfpc}
|
||||
type
|
||||
TBadObject = class
|
||||
a: array[0..0] of char;
|
||||
public
|
||||
property a0: char read a[0];
|
||||
end;
|
||||
|
||||
var
|
||||
BadObject: TBadObject;
|
||||
begin
|
||||
BadObject := TBadObject.Create;
|
||||
BadObject.a[0] := 'a';
|
||||
if BadObject.a0 = BadObject.a[0] then;
|
||||
BadObject.Free;
|
||||
end.
|
Loading…
Reference in New Issue
Block a user