foo(int a)1 static int foo(int a)
2 {
3 	switch (a) {
4 	case 0:
5 		return a;
6 	case a:
7 		return 0;
8 	case (a - a):
9 		return 1;
10 	default:
11 		return a;
12 	}
13 }
14 
bar(int a)15 static int bar(int a)
16 {
17 	switch (a) {
18 	case 0:
19 		break;
20 	case a:
21 		a++;
22 label:
23 		return a;
24 	}
25 
26 	goto label;
27 }
28 
29 
30 /*
31  * check-name: non-const-case
32  * check-command: test-linearize -Wno-decl $file
33  *
34  * check-error-ignore
35  * check-output-ignore
36  * check-output-excludes:switch \\.
37  */
38