summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/webtbs/tw7285.pp
blob: a045919e3254f680d63b89780fba88d91d3c17cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ %opt=-Sehw -vwh -S2 }

type myclass=class(TObject)
      procedure myproc(); 
     end; 

procedure myclass.myproc(); 
var avalue:integer=100; 
begin
     writeln(avalue); 
end; 


var
  c: myclass;
begin
  c := myclass.create;
  c.myproc;
  c.free;
end.