File:  [CSRG BSD Unix] / 43BSDReno / pgrm / pascal / tstpx / src / shoemake.p
Revision 1.1: download - view: text, annotated - select for diffs
Tue Apr 24 16:12:57 2018 UTC (8 years, 1 month ago) by root
CVS tags: MAIN, HEAD
Initial revision

program test(input, output);
type
   alpha    = array[1..10] of char;
   lineType = array[1..80] of char;

procedure test1(name : alpha);		{If this parameter is integer, the pro-
					 gram will not bomb }
   var					{If any of these local variables are
					 deleted, the program will run OK}
      linenum : integer;
      line   : lineType; 		{If this is a simple type, the program
					 will not bomb.}
      index  : integer;
      chars  : integer;
      infile : text;

   begin				{If other statements are put before this
					 reset, they are executed, and the pro-
					 gram doesn't bomb until the reset is
					 executed.}

      reset(infile, '/dev/null');
   end;
      
begin
   rewrite(output,'/dev/null');		{If this rewrite statement is not here,
					 the program will not bomb}
   test1('/dev/null');
end.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.