summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/test/tobjc15.pp
blob: 52c3378117ae4a6a0ee4bae055d8aef42d53515e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ %target=darwin }
{ %cpu=powerpc,powerpc64,i386,x86_64,arm }

{ Written by Jonas Maebe in 2009, released into the public domain }

{$mode objfpc}
{$modeswitch objectivec1}

type
  ttest = NSObject;

var
  a: ttest;
begin
  a:=ttest(ttest.alloc).init;
  if a._class<>NSObject.classClass then
    halt(1);
  a.release;
end.