* new bug

This commit is contained in:
peter 2004-11-26 22:32:18 +00:00
parent 645ed0feb1
commit cc33cec223
2 changed files with 31 additions and 0 deletions

View File

@ -1,7 +1,10 @@
{ %fail }
{$mode fpc}
var c: char;
p: pchar;
begin
{ Don't allow this in fpc modes, in delphi it should be allowed }
p := pchar(c);
end.

28
tests/webtbf/tw3395.pp Normal file
View File

@ -0,0 +1,28 @@
{ %fail }
{$MODE DELPHI}
type
texec1 = class
protected
procedure execute;
public
constructor create;
end;
procedure t(p: pointer);
begin
end;
constructor texec1.Create;
begin
{ THis is not allowed }
t(@execute);
end;
procedure texec1.execute;
begin
end;
begin
end.