Browse Source

* fixed mode objfpc

peter 26 years ago
parent
commit
a64b526adc
8 changed files with 24 additions and 15 deletions
  1. 7 5
      tests/tbs0139.pp
  2. 7 8
      tests/tbs0139a.pp
  3. 2 0
      tests/tbs0212.pp
  4. 1 1
      tests/tbs0241.pp
  5. 2 1
      tests/tbs0249.pp
  6. 1 0
      tests/ts010000.pp
  7. 2 0
      tests/ts010004.pp
  8. 2 0
      tests/ts010005.pp

+ 7 - 5
tests/tbs0139.pp

@@ -1,17 +1,19 @@
 unit tbs0139;
 unit tbs0139;
- 
+
+{$mode objfpc}
+
  interface
  interface
  uses
  uses
-    objpas, tbs0139a;
- 
+    tbs0139a;
+
  type
  type
     AnotherClass=class(SomeClass)
     AnotherClass=class(SomeClass)
     protected
     protected
     procedure doSomething; override;
     procedure doSomething; override;
     end ;
     end ;
- 
+
  implementation
  implementation
- 
+
  procedure AnotherClass.doSomething;
  procedure AnotherClass.doSomething;
  begin
  begin
  inherited doSomething;  // this causes the error: " can not call protected
  inherited doSomething;  // this causes the error: " can not call protected

+ 7 - 8
tests/tbs0139a.pp

@@ -1,19 +1,18 @@
  unit tbs0139a;
  unit tbs0139a;
- 
+
+{$mode objfpc}
+
  interface
  interface
- 
- uses
-    objpas;
- 
+
  type
  type
     SomeClass=class(TObject)
     SomeClass=class(TObject)
     protected
     protected
     procedure doSomething; virtual;
     procedure doSomething; virtual;
     end ;
     end ;
- 
+
  implementation
  implementation
- 
- 
+
+
  procedure SomeClass.doSomething;
  procedure SomeClass.doSomething;
  begin
  begin
    Writeln ('Hello from SomeClass.DoSomething');
    Writeln ('Hello from SomeClass.DoSomething');

+ 2 - 0
tests/tbs0212.pp

@@ -1,5 +1,7 @@
 program proptest;
 program proptest;
 
 
+{$mode objfpc}
+
 type
 type
   TMyRec = record
   TMyRec = record
     Int: Integer;
     Int: Integer;

+ 1 - 1
tests/tbs0241.pp

@@ -1,4 +1,4 @@
-{$OPT= -Twin32}
+{ $OPT= -Twin32}
 
 
 program test_win32_drv;
 program test_win32_drv;
 
 

+ 2 - 1
tests/tbs0249.pp

@@ -1,5 +1,6 @@
 program TestEvent;
 program TestEvent;
 
 
+{$mode objfpc}
 {$M+}
 {$M+}
 
 
 type
 type
@@ -33,7 +34,7 @@ end;
 
 
 procedure THost.SetOnEvent( Value: TNotifyEvent );
 procedure THost.SetOnEvent( Value: TNotifyEvent );
 begin
 begin
-  FOnEvent := Value             
+  FOnEvent := Value
 end;
 end;
 
 
 procedure THost.SayHello;
 procedure THost.SayHello;

+ 1 - 0
tests/ts010000.pp

@@ -1,3 +1,4 @@
+{$mode objfpc}
 type
 type
    tobject1 = class
    tobject1 = class
       readl : longint;
       readl : longint;

+ 2 - 0
tests/ts010004.pp

@@ -1,3 +1,5 @@
+{$mode objfpc}
+
 { tests forward class types }
 { tests forward class types }
 
 
 type
 type

+ 2 - 0
tests/ts010005.pp

@@ -1,3 +1,5 @@
+{$mode objfpc}
+
 type
 type
    tclass1 = class
    tclass1 = class
       procedure a;virtual;
       procedure a;virtual;