aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr64284.c
blob: 425438116ebd0fa67325537e3bf3519254ac834e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* { dg-do compile } */

int *a;
int b;
int
fn1() {
    enum { QSTRING } c = 0;
    while (1) {
	switch (*a) {
	  case '\'':
	  c = 0;
	  default:
	  switch (c)
	  case 0:
	    if (b)
	      return 0;
	    c = 1;
	}
	a++;
    }
}