mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 19:29:24 +02:00
* new tests for wrong Notes
This commit is contained in:
parent
30b8959557
commit
dd4c5959f3
8
tests/tbs/tbs0317.pp
Normal file
8
tests/tbs/tbs0317.pp
Normal file
@ -0,0 +1,8 @@
|
||||
{ $OPT= -Sen }
|
||||
|
||||
{ This shouldn't give a warning, because it can be used in an other program }
|
||||
var
|
||||
exportedc : longint;cvar;public;
|
||||
begin
|
||||
exportedc:=0;
|
||||
end.
|
11
tests/tbs/tbs0318.pp
Normal file
11
tests/tbs/tbs0318.pp
Normal file
@ -0,0 +1,11 @@
|
||||
{ $OPT=-Sen }
|
||||
{$mode objfpc}
|
||||
uses sysutils;
|
||||
|
||||
{ The exception is used in the raise statement, so no Note should be thrown }
|
||||
var
|
||||
e : exception;
|
||||
begin
|
||||
e:=exception.create('test');
|
||||
raise e;
|
||||
end.
|
Loading…
Reference in New Issue
Block a user