aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/vect/no-scevccp-pr49199.c
blob: 0f11142eb7517a80b1f45a2b704b1dd8b84a7481 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { 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" } } */