mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 02:28:14 +02:00
* new bug
This commit is contained in:
parent
8b9c48e7fb
commit
a2da84d9ae
40
tests/webtbf/tw2739.pp
Normal file
40
tests/webtbf/tw2739.pp
Normal file
@ -0,0 +1,40 @@
|
||||
{ %fail }
|
||||
|
||||
{$mode Delphi}
|
||||
unit tw2739;
|
||||
|
||||
interface
|
||||
|
||||
|
||||
|
||||
type
|
||||
TJclExceptNotifyProc = procedure (ExceptObj: TObject; ExceptAddr: Pointer; OSException: Boolean);
|
||||
TJclExceptNotifyMethod = procedure (ExceptObj: TObject; ExceptAddr: Pointer; OSException: Boolean) of object;
|
||||
|
||||
|
||||
|
||||
function JclAddExceptNotifier(const NotifyProc: TJclExceptNotifyProc ): Boolean; overload;
|
||||
function JclAddExceptNotifier(const NotifyMethod: TJclExceptNotifyMethod): Boolean; overload;
|
||||
|
||||
|
||||
implementation
|
||||
|
||||
function JclAddExceptNotifier(const NotifyProc: TJclExceptNotifyProc ): Boolean; overload;
|
||||
|
||||
begin
|
||||
end;
|
||||
|
||||
|
||||
|
||||
function JclAddExceptNotifier(const NotifyMethod: TJclExceptNotifyMethod): Boolean; overload;
|
||||
var
|
||||
// p : pointer;
|
||||
p : TJclExceptNotifyMethod;
|
||||
begin
|
||||
{ This fails @NotifyMethod returns a pointer to the proc }
|
||||
p:=@NotifyMethod;
|
||||
end;
|
||||
|
||||
|
||||
begin
|
||||
end.
|
Loading…
Reference in New Issue
Block a user