fpc/tests/test/tobjc31.pp
Jonas Maebe c6daaa28d0 * enable all Objective-C tests for Darwin/AArch64
git-svn-id: trunk@29945 -
2015-02-23 22:54:24 +00:00

35 lines
477 B
ObjectPascal

{ %target=darwin }
{ %cpu=powerpc,powerpc64,i386,x86_64,arm,aarch64 }
{$mode objfpc}
{$modeswitch objectivec1}
{ test program by saabino80 at alice in Italy for nested procedures in
Objective-C methods }
Program Foo;
uses
ctypes;
Type MyObjc= objcclass(NSObject)
Procedure nested; message 'nested';
End;
Procedure MyObjc.nested;
Procedure one;
Begin;
WriteLn('Ciao');
End;
Begin
one;
End;
Var My:MyObjc;
Begin
My := MyObjc.alloc;
My.nested;
My.release;
End.