mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 02:07:53 +02:00
* new bugs
This commit is contained in:
parent
bd07b65cfd
commit
267e5fd63e
23
tests/webtbs/tw2815.pp
Normal file
23
tests/webtbs/tw2815.pp
Normal file
@ -0,0 +1,23 @@
|
||||
{ %opt=-Sew }
|
||||
|
||||
{ Source provided for Free Pascal Bug Report 2815 }
|
||||
{ Submitted by "Mattias Gaertner" on 2003-11-30 }
|
||||
{ e-mail: mattias@freepascal.org }
|
||||
program VirtualCreate;
|
||||
|
||||
{$mode objfpc}{$H+}
|
||||
|
||||
type
|
||||
TAbstractClass = class
|
||||
public
|
||||
constructor Create;
|
||||
constructor VirtualCreate; virtual; abstract;
|
||||
end;
|
||||
|
||||
constructor TAbstractClass.Create;
|
||||
begin
|
||||
VirtualCreate;
|
||||
end;
|
||||
|
||||
begin
|
||||
end.
|
19
tests/webtbs/tw2817.pp
Normal file
19
tests/webtbs/tw2817.pp
Normal file
@ -0,0 +1,19 @@
|
||||
{ %opt=-Sen }
|
||||
|
||||
{ Source provided for Free Pascal Bug Report 2817 }
|
||||
{ Submitted by "Mattias Gaertner" on 2003-11-30 }
|
||||
{ e-mail: mattias@freepascal.org }
|
||||
program UnusedVar;
|
||||
|
||||
{$mode objfpc}{$H+}
|
||||
|
||||
procedure DoSomething(var Lines: PPChar; var LineCount: integer);
|
||||
var
|
||||
p: PPChar;
|
||||
begin
|
||||
p:=Lines;
|
||||
p[LineCount-1]:=nil;
|
||||
end;
|
||||
|
||||
begin
|
||||
end.
|
Loading…
Reference in New Issue
Block a user