aboutsummaryrefslogtreecommitdiff
path: root/Testing/Semantic/t1-3.p
diff options
context:
space:
mode:
authorTucker Evans <tuckerevans24@gmail.com>2019-09-25 19:49:47 -0400
committerTucker Evans <tuckerevans24@gmail.com>2019-09-25 19:49:47 -0400
commit4f66397e285f7742bdf5bfd9f723e10104486ce2 (patch)
treebd5321fa8025ae0cb23f7f750c3ef9d90827df2a /Testing/Semantic/t1-3.p
parent75b7f9b97d9fc1186f7864f46c5e5d383432cfb7 (diff)
Squashed commit of the following:
commit 5feabbc13a2edc8c5088f8a6163c729921f4119b Author: Tucker Evans <tuckerevans24@gmail.com> Date: Wed Sep 25 19:48:52 2019 -0400 Update Semantic Check List after initial testing w/ Tino's tests commit d86de7957451e485c90e2354042e7e6bfb04a13f Author: Tucker Evans <tuckerevans24@gmail.com> Date: Wed Sep 25 19:48:27 2019 -0400 Add variations to Tino's tests commit df5b9a51ce309b76e046aecfedd0960e7fa9984f Author: Tucker Evans <tuckerevans24@gmail.com> Date: Wed Sep 25 19:12:50 2019 -0400 Add Tino's test files Files correspond to semantic check list entries
Diffstat (limited to 'Testing/Semantic/t1-3.p')
-rw-r--r--Testing/Semantic/t1-3.p11
1 files changed, 11 insertions, 0 deletions
diff --git a/Testing/Semantic/t1-3.p b/Testing/Semantic/t1-3.p
new file mode 100644
index 0000000..a224b22
--- /dev/null
+++ b/Testing/Semantic/t1-3.p
@@ -0,0 +1,11 @@
+(* LEGAL: non-local names visible from inner scopes *)
+program main( input, output );
+ var a: integer;
+ procedure boo(x: integer);
+ begin
+ a := x
+ end;
+begin
+ boo(a)
+end.
+