* tests from reported busg

This commit is contained in:
peter 2000-07-08 16:21:39 +00:00
parent b506dc4514
commit a435d9d773
2 changed files with 38 additions and 0 deletions

29
tests/tbs/tbs0337.pp Normal file
View File

@ -0,0 +1,29 @@
program vartest;
{$ifdef fpc}{$mode objfpc}{$endif}
uses
Classes;
type
TMyComponent = class(TComponent)
aaaaaaaaaa: TComponent;
b: TComponent;
private
public
constructor Create(AOwner: TComponent); override;
end;
constructor TMyComponent.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
aaaaaaaaaa := TComponent.Create(Self);
end;
var
MyComponent: TMyComponent;
begin
MyComponent := TMyComponent.Create(nil);
end.

9
tests/tbs/tbs0338.pp Normal file
View File

@ -0,0 +1,9 @@
{$define skip}
program test;
begin
writeln('Hello world!');
{$ifndef skip}
write('}');
{$endif skip}
end.