aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr111435-1.c
blob: afa84dd59ddea2fb4ad08a3df868fdcc937e8b08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-options "-fexceptions -fno-early-inlining" } */
/* { dg-require-effective-target exceptions } */

void find_slot_with_hash(const int *);

void put(const int *k, const int *) {
    find_slot_with_hash(k);
}
unsigned len();
int *address();
void h(int header, int **bounds) {
  if (!*bounds)
    return;
  unsigned t = *bounds ? len() : 0;
  int queue_index = t;
  address()[(unsigned)queue_index] = 0;
  put(&header, &queue_index);
}