mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 01:09:06 +02:00
* guid additions
This commit is contained in:
parent
e2719218f8
commit
5a634ebba4
13
tests/tbf/tb0111.pp
Normal file
13
tests/tbf/tb0111.pp
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{ %VERSION=1.1 }
|
||||||
|
{$ifdef fpc}{$mode objfpc}{$endif}
|
||||||
|
|
||||||
|
type
|
||||||
|
imyinterface2 = interface
|
||||||
|
procedure p;
|
||||||
|
end;
|
||||||
|
|
||||||
|
const
|
||||||
|
iid_imyinterface2 = imyinterface2;
|
||||||
|
|
||||||
|
begin
|
||||||
|
end.
|
@ -1,6 +1,6 @@
|
|||||||
{ %VERSION=1.1 }
|
{ %VERSION=1.1 }
|
||||||
{$mode delphi}
|
{$mode delphi}
|
||||||
unit test;
|
unit tb0371;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
{ %VERSION=1.1 }
|
{ %VERSION=1.1 }
|
||||||
|
{$ifdef fpc}{$mode objfpc}{$endif}
|
||||||
|
{$J+}
|
||||||
|
|
||||||
type
|
type
|
||||||
imyinterface = interface
|
imyinterface = interface
|
||||||
// this program isn't supposed to run so the guid doesn't matter }
|
// this program isn't supposed to run so the guid doesn't matter }
|
||||||
@ -8,10 +11,13 @@ type
|
|||||||
|
|
||||||
const
|
const
|
||||||
iid_imyinterface = imyinterface;
|
iid_imyinterface = imyinterface;
|
||||||
|
iid2 : tguid = '{00000000-0000-0000-0000-000000000000}';
|
||||||
|
|
||||||
var
|
var
|
||||||
g : tguid;
|
g : tguid;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
g:=imyinterface;
|
g:=imyinterface;
|
||||||
|
g:=iid_imyinterface;
|
||||||
|
g:=iid2;
|
||||||
|
iid2:=iid_imyinterface;
|
||||||
end.
|
end.
|
||||||
|
Loading…
Reference in New Issue
Block a user