aboutsummaryrefslogtreecommitdiff
path: root/Testing/Semantic/t2-3.p
diff options
context:
space:
mode:
Diffstat (limited to 'Testing/Semantic/t2-3.p')
-rw-r--r--Testing/Semantic/t2-3.p9
1 files changed, 9 insertions, 0 deletions
diff --git a/Testing/Semantic/t2-3.p b/Testing/Semantic/t2-3.p
new file mode 100644
index 0000000..806c575
--- /dev/null
+++ b/Testing/Semantic/t2-3.p
@@ -0,0 +1,9 @@
+(* ERROR: objects of different types appear in the same expression *)
+program main( input, output );
+ var a: integer;
+ var x: real;
+begin
+ a := a + 1.23;
+ x := x + 123
+end.
+