mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 12:49:33 +02:00
* new negative test cases for interface to TGuid/Shortstring assign
git-svn-id: trunk@12724 -
This commit is contained in:
parent
549f1ecc1b
commit
b2235eb873
4
.gitattributes
vendored
4
.gitattributes
vendored
@ -6663,6 +6663,10 @@ tests/tbf/tb0212.pp svneol=native#text/plain
|
||||
tests/tbf/tb0213.pp svneol=native#text/plain
|
||||
tests/tbf/tb0214.pp svneol=native#text/plain
|
||||
tests/tbf/tb0215.pp svneol=native#text/plain
|
||||
tests/tbf/tb0215a.pp svneol=native#text/plain
|
||||
tests/tbf/tb0215b.pp svneol=native#text/plain
|
||||
tests/tbf/tb0215c.pp svneol=native#text/plain
|
||||
tests/tbf/tb0215d.pp svneol=native#text/plain
|
||||
tests/tbf/ub0115.pp svneol=native#text/plain
|
||||
tests/tbf/ub0149.pp svneol=native#text/plain
|
||||
tests/tbf/ub0158a.pp svneol=native#text/plain
|
||||
|
16
tests/tbf/tb0215a.pp
Normal file
16
tests/tbf/tb0215a.pp
Normal file
@ -0,0 +1,16 @@
|
||||
{ %FAIL }
|
||||
// it's not allowed to assign a corbainterface to TGuid
|
||||
|
||||
{$mode objfpc}
|
||||
|
||||
{$INTERFACES CORBA}
|
||||
type
|
||||
ITest = interface
|
||||
['{0374223C-E460-4CC2-ABFD-7723AAB80CFE}']
|
||||
end;
|
||||
|
||||
const
|
||||
Test_IID: TGuid = ITest;
|
||||
|
||||
begin
|
||||
end.
|
18
tests/tbf/tb0215b.pp
Normal file
18
tests/tbf/tb0215b.pp
Normal file
@ -0,0 +1,18 @@
|
||||
{ %FAIL }
|
||||
// it's not allowed to assign a corbainterface to TGuid
|
||||
|
||||
{$mode objfpc}
|
||||
|
||||
{$INTERFACES CORBA}
|
||||
type
|
||||
ITest = interface
|
||||
['{0374223C-E460-4CC2-ABFD-7723AAB80CFE}']
|
||||
end;
|
||||
|
||||
procedure foo(iid: tguid);
|
||||
begin
|
||||
end;
|
||||
|
||||
begin
|
||||
foo(ITest);
|
||||
end.
|
16
tests/tbf/tb0215c.pp
Normal file
16
tests/tbf/tb0215c.pp
Normal file
@ -0,0 +1,16 @@
|
||||
{ %FAIL }
|
||||
// it's not allowed to assign a corbainterface to TGuid
|
||||
|
||||
{$mode objfpc}
|
||||
|
||||
{$INTERFACES COM}
|
||||
type
|
||||
ITest = interface
|
||||
['{0374223C-E460-4CC2-ABFD-7723AAB80CFE}']
|
||||
end;
|
||||
|
||||
const
|
||||
Test_IID: Shortstring = ITest;
|
||||
|
||||
begin
|
||||
end.
|
16
tests/tbf/tb0215d.pp
Normal file
16
tests/tbf/tb0215d.pp
Normal file
@ -0,0 +1,16 @@
|
||||
{ %FAIL }
|
||||
// it's not allowed to assign a corbainterface to TGuid
|
||||
|
||||
{$mode objfpc}
|
||||
|
||||
{$INTERFACES COM}
|
||||
type
|
||||
ITest = interface
|
||||
['{0374223C-E460-4CC2-ABFD-7723AAB80CFE}']
|
||||
end;
|
||||
|
||||
const
|
||||
Test_IID: Shortstring = ITest;
|
||||
|
||||
begin
|
||||
end.
|
Loading…
Reference in New Issue
Block a user