/* { dg-do compile } */
/* { dg-add-options vect_early_break } */
/* { dg-require-effective-target vect_early_break } */
/* { dg-require-effective-target vect_int } */
/* { dg-additional-options "-O3" } */

struct h {
  int b;
  int c;
  int f;
} k;

void n(int m) {
  struct h a = k;
  for (int o = m; o; ++o) {
    if (a.f)
      __builtin_unreachable();
    if (o > 1)
      __builtin_unreachable();
    *(&k.b + o) = 1;
    *(&k.c + o*m) = 2;
  }
}
