* new tests for wrong Notes

This commit is contained in:
peter 2000-06-01 10:59:01 +00:00
parent 30b8959557
commit dd4c5959f3
2 changed files with 19 additions and 0 deletions

8
tests/tbs/tbs0317.pp Normal file
View 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
View 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.