blob: 767d5788d75b42f7a5ff171072a5f78257f8d384 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
/* $OpenBSD: test-4.c,v 1.1 2005/11/26 20:45:30 cloder Exp $ */
/*
* Placed in the public domain by Chad Loder <cloder@openbsd.org>.
*
* Test parsing of GNU case ranges.
*/
/* ARGSUSED */
int
main(int argc, char* argv[])
{
int i;
char c;
c = 'a';
switch (c)
{
case 'a':
i = 0;
break;
case 'A' ... 'Z':
i = 1;
break;
default:
i = 1;
}
i++;
return 0;
}
|