projects
/
unix-history
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ac0d84d
)
BSD 4_2 development
author
CSRG
<csrg@ucbvax.Berkeley.EDU>
Mon, 25 Apr 1983 13:58:54 +0000
(
05:58
-0800)
committer
CSRG
<csrg@ucbvax.Berkeley.EDU>
Mon, 25 Apr 1983 13:58:54 +0000
(
05:58
-0800)
Work on file usr/src/ucb/pascal/pdx/test/bug.p
Synthesized-from: CSRG/cd1/4.2
usr/src/ucb/pascal/pdx/test/bug.p
[new file with mode: 0644]
patch
|
blob
diff --git a/usr/src/ucb/pascal/pdx/test/bug.p
b/usr/src/ucb/pascal/pdx/test/bug.p
new file mode 100644
(file)
index 0000000..
2afb833
--- /dev/null
+++ b/
usr/src/ucb/pascal/pdx/test/bug.p
@@ -0,0
+1,18
@@
+program test (output);
+var a : array [1..10] of integer;
+procedure foo;
+begin
+ a[4] := 100;
+ a[5] := 100;
+ a[6] := 100;
+end;
+function bar (x:integer):integer;
+ begin
+ bar := 10*x;
+ end;
+begin
+ a[1] := 100;
+ foo;
+ a[2] := bar(2);
+ a[3] := 100;
+end.