summaryrefslogtreecommitdiff
path: root/ecomp-c/tests/variable_assign_from_type.e
blob: 149f282484fa246b3bfd566f543d262b41efec93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * assign variable from constant
 */

module variable_assign_from_type;

const
	// integer constant
	N : integer = 20;

var
	// this is an integer
	a : integer;

begin
	a := integer; // this must fail
end