Browse Source

* tests from reported busg

peter 25 years ago
parent
commit
a435d9d773
2 changed files with 38 additions and 0 deletions
  1. 29 0
      tests/tbs/tbs0337.pp
  2. 9 0
      tests/tbs/tbs0338.pp

+ 29 - 0
tests/tbs/tbs0337.pp

@@ -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 - 0
tests/tbs/tbs0338.pp

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