1(* 2 * Copyright (c) 1980 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 * 7 * @(#)pointer.p 5.1 (Berkeley) 04/16/91 8 *) 9 10program pointer(input, output); 11type xp = ^x; 12 x = record 13 y : integer; 14 a : real; 15 end; 16 17var p : xp; 18begin 19 new(p); 20 p^.y := 5; 21 p^.a := 3.14; 22 writeln('pointer test'); 23end. 24