2018-01-16 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / no-scevccp-pr49199.c
blob1cb455bc5642262dcad30eba8488e45d98e7b424
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_int } */
4 int const_bar (void) __attribute__ ((__const__));
5 int pure_bar (void) __attribute__ ((__pure__));
7 int foo (void)
9 int i = 0, x = 0;
10 for (; i < 100; i++)
12 x += const_bar ();
13 x += pure_bar ();
15 return x;