summaryrefslogtreecommitdiff
path: root/regress/usr.bin/pcc/ccom/tmpalloc001.c
blob: 87679108b2b675d2a148898abf2bf82af9775f3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* From Ted Unangst */
int a() { return 1; }

int f()
{
	int b = 0;
	a() + ++b;
	return 0;
}

int main()
{
	int b = 0;
	a() + ++b;
	if (b == 1)
		exit(0);
	else
		exit(1);
}