view gcc/testsuite/gcc.dg/pr83666.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents
children
line wrap: on
line source

/* PR debug/83666 */
/* { dg-do compile } */
/* { dg-options "-O2 -g -Wno-psabi" } */
/* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */

typedef int __attribute__ ((vector_size (64))) V;

int c, d;
short e;
V g;

V
bar (void)
{
  g[1] = d;
  do
    {
      e += c;
      g = g > 0;
    }
  while (g[1]);
  return g;
}

void
foo (void)
{
  int x = bar ()[3];
}