New regression binary and unary expression failure tests added.

gcc/testsuite/gm2/ChangeLog:

	* errors/fail/binaryconst.mod
	* errors/fail/binarygeneric.mod
	* errors/fail/binarygenericconst.mod
	* errors/fail/unarygeneric.mod

Signed-off-by: Gaius Mulley <gaius.mulley@southwales.ac.uk>
This commit is contained in:
Gaius Mulley 2022-08-11 18:24:07 +01:00
parent 06642d296d
commit 820fb90479
4 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,7 @@
MODULE binaryconst ;
VAR
r: REAL ;
BEGIN
r := 1.2 + 1
END binaryconst.

View File

@ -0,0 +1,11 @@
MODULE binarygeneric ;
FROM SYSTEM IMPORT WORD ;
VAR
a, b, c: WORD ;
BEGIN
b := 1 ;
c := 2 ;
a := b + c
END binarygeneric.

View File

@ -0,0 +1,10 @@
MODULE binarygenericconst ;
FROM SYSTEM IMPORT WORD ;
VAR
a, b: WORD ;
BEGIN
b := 1 ;
a := 1 + b
END binarygenericconst.

View File

@ -0,0 +1,10 @@
MODULE unarygeneric ;
FROM SYSTEM IMPORT WORD ;
VAR
a, b: WORD ;
BEGIN
b := 1 ;
a := -b
END unarygeneric.