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

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

int main()
{
	int b = 0;
	a() + ++b;
	printf("%d\n", b);
	return 0;
}