mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-08 05:47:20 +01:00
* tests from reported busg
This commit is contained in:
parent
b506dc4514
commit
a435d9d773
29
tests/tbs/tbs0337.pp
Normal file
29
tests/tbs/tbs0337.pp
Normal 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
9
tests/tbs/tbs0338.pp
Normal file
@ -0,0 +1,9 @@
|
||||
{$define skip}
|
||||
|
||||
program test;
|
||||
begin
|
||||
writeln('Hello world!');
|
||||
{$ifndef skip}
|
||||
write('}');
|
||||
{$endif skip}
|
||||
end.
|
||||
Loading…
Reference in New Issue
Block a user