home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.ee.pdx.edu
/
2014.02.ftp.ee.pdx.edu.tar
/
ftp.ee.pdx.edu
/
pub
/
users
/
Harry
/
compilers
/
p5
/
tst
/
e5.pcat
< prev
next >
Wrap
Text File
|
2005-11-01
|
482b
|
14 lines
(*** Check formal declarations - should be 2 "Identifier is already defined" errors ***)
program is
var x: integer := 1;
a: real := 3.5;
procedure foo1 (x: integer; a:real) is
var x: integer := 2; (* Here *)
procedure foo2 (x: integer; a,b,c:real) is
var i,j,c: integer := 4; (* Here, on c *)
begin end;
procedure foo3 (x: integer; a:real) is begin end;
begin end;
begin end;