summaryrefslogtreecommitdiff
path: root/regress/usr.bin/pcc/ccom/const001.c
blob: 5bb68f6e1c5020bc09f33df5c6bb5bf4ed2bed7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
main()
{
	char c = 0x7f;
	short s = 0x7fff;
	int i = 0x7fffffff;
	long long ll = 0x7fffffffffffffffLL;

	if (c > i)
		exit(1);
	if (s > i)
		exit(1);
	if (i > ll)
		exit(1);

	if (c > 0x7fff)
		exit(1);
	if (s > 0x7fffffff)
		exit(1);
	if (i > 0x7fffffffffffffffLL)
		exit(1);
	exit(0);
}