aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr120277.c
blob: f291e920db1691a6c14df9a9c87290fbd6e4803b (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 } */
/* { dg-options "-O2" } */

int a, b;
int c(int d, long e) {
  switch (d) {
  case 129:
    a = 1;
  case 128:
    break;
  default:
    return 1;
  }
  *(int *)e = 0;
}
void f(int d, long e) { c(d, e); }
void g() {
  int h = b * sizeof(int);
  f(h + 7, h);
}
void main() {}