aboutsummaryrefslogtreecommitdiff
path: root/Testing/Semantic/t2-1.p
diff options
context:
space:
mode:
Diffstat (limited to 'Testing/Semantic/t2-1.p')
-rw-r--r--Testing/Semantic/t2-1.p10
1 files changed, 10 insertions, 0 deletions
diff --git a/Testing/Semantic/t2-1.p b/Testing/Semantic/t2-1.p
new file mode 100644
index 0000000..295fe4b
--- /dev/null
+++ b/Testing/Semantic/t2-1.p
@@ -0,0 +1,10 @@
+(* expression must return a typed-value *)
+program main(input,output);
+ var a,b,c: integer;
+ var x,y,z: real;
+begin
+ a := b + c;
+ x := y + z;
+ a := x
+end.
+