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" } } */