summaryrefslogtreecommitdiff
path: root/regress/usr.bin/pcc/ccom/switch003.c
blob: c6bcf90cfe73a1cafc832bf3d9a2b16041433636 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * Returns 1 if sizeof(unsigned long) < sizeof(unsigned long long), but
 * should return 0.
 */
int
main(int argc, char **argv)
{
	unsigned long long i = (unsigned long)~0 + (unsigned long long)2;

	switch (i) {
	case 1:
		return 1;
	}

	return 0;
}