view gcc/testsuite/gcc.dg/pr83666.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
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];
}