summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/vect/pr51485.cc
blob: d57d7596d0e2bc2a9bcf018a59cb2233cbdb0c77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */

struct A { A (); unsigned int a; };
double bar (A a) throw () __attribute__((pure));

void
foo (unsigned int x, double *y, A *z)
{
  unsigned int i;
  for (i = 0; i < x; i++)
    y[i] = bar (z[i]);
}

/* { dg-final { cleanup-tree-dump "vect" } } */