summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/pr18425.c
blob: 08f7b65cc49a8db7358c0c58851f417e1d46fa7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do compile } */
/* ??? Using "long" isn't quite right; we're testing vectors of pointers here.
   But since no extant target supports sizeof(long) != sizeof(void*)...  */
/* { dg-require-effective-target vect_long } */

char **      _M_allocate();
void
_M_fill_insert(unsigned int __n)
{
   char **__new_start = _M_allocate();
   char *__tmp = 0;
   for (; __n > 0; --__n, ++__new_start)
     *__new_start = __tmp;
}

/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
/* { dg-final { cleanup-tree-dump "vect" } } */