summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/tbs/tb0372.pp
blob: 1c1de4da3669a72d6253546c1db7d258ab4a7606 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ %VERSION=1.1 }
{$ifdef fpc}{$mode objfpc}{$endif}
{$J+}

type
   imyinterface = interface
      // this program isn't supposed to run so the guid doesn't matter }
      ['{00000000-0000-0000-0000-000000000000}']
      procedure p;
   end;

const
   iid_imyinterface = imyinterface;
   iid2 : tguid = '{00000000-0000-0000-0000-000000000000}';

var
   g : tguid;
begin
   g:=imyinterface;
   g:=iid_imyinterface;
   g:=iid2;
   iid2:=iid_imyinterface;
end.