summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr80823.c
blob: 0a48764bfde942d83b1c2670855123a8cc0b32c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* PR middle-end/80823 ICE: verify_flow_info failed  */
/* { dg-do compile }  */
/* { dg-options "-O3" }  */

int a, c;
int b[1];
static inline int
fn1() {
  switch (a)
  case 0:
  case 2:
    return 1;
  return 0;
}
void fn2() {
  int i;
  for (;; ++i) {
    c = b[i];
    int d = !fn1();
    if (d)
      __asm__("");
  }
}