summaryrefslogtreecommitdiff
path: root/ecomp-c/tests/const_assignment_from_another_constant.e
blob: b8976cf39b48bd2b7f010f1a8f5ec6e535b01427 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/*
 * assign a constant to another constant (simplest possible const expression
 * besides a number or literal)
 */

module const_assignment_from_another_constant;

const
	N : integer = 20;
	M : integer = N; // we allow the const expression to be another constant
	
begin
end