blob: 0f11142eb7517a80b1f45a2b704b1dd8b84a7481 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-require-effective-target vect_int } */
int const_bar (void) __attribute__ ((__const__));
int pure_bar (void) __attribute__ ((__pure__));
int foo (void)
{
int i = 0, x = 0;
for (; i < 100; i++)
{
x += const_bar ();
x += pure_bar ();
}
return x;
}
/* { dg-final { cleanup-tree-dump "vect" } } */