view gcc/testsuite/gcc.dg/pr90866-2.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
line wrap: on
line source

/* PR tree-optimization/90866 - ICE in fold_binary_loc, at fold-const.c:9827
   { dg-do compile  }
   { dg-require-effective-target global_constructor }
   { dg-options "-O2 -fsanitize=thread" }
 */

typedef enum { a } b;
typedef struct {
  int c[0];
} d;
typedef struct {
  int *data;
} e;
typedef struct {
  e buffer;
} f;
int g, h;

int i(f *j, d *k, b l, int m) {
  if (l)
    if (m) {
      h = j->buffer.data[0];
      k->c[g] = k->c[g] * 8;
    }
  return 0;
}