@c+
module confuse -- test11
-- This test uses various identifiers where exprs are needed
-- but they are not exprs.  These are not the only
-- possibilities in GCL.  It can also happen in subscripting, 
-- for example.  NOTE. The sample compiler may fail some of 
-- these tests.  
private

typedef integer int;
const c = int; -- error
int x,y;
x z; -- error

begin

 int := xx;  -- error
 confuse := y;  -- error 
 read int;  -- error
 x := - confuse;   -- error
 if x < int ->   -- error
	write confuse;  -- error
 [] int ->  -- error
	write int;  -- error
 fi;
end. -- 10 errors
