summaryrefslogtreecommitdiff
path: root/tests/parser/do-statement.vala
blob: f2fe99218c60eb92124a58b4b3b2ef5b2bb58df0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
void main () {
	int i = 0;

	do {
		i++;
	} while (i < 2);
	assert (i == 2);

	do {
		i = 42;
		break;
	} while (true);
	assert (i == 42);
}