LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr56918.c
blob1c88d324b902e9389afe4c5c729f20b2ad790dbf
1 /* PR tree-optimization/56918 */
2 /* { dg-additional-options "-O3" } */
4 #include "tree-vect.h"
6 extern void abort (void);
7 double data[8];
9 __attribute__((noinline, noclone)) void
10 foo ()
12 int i;
13 for (i = 0; i < 8; ++i)
14 data[i] = ((i + 2) % 3) + 1;
17 int
18 main ()
20 int i;
21 check_vect ();
22 foo ();
23 if (data[0] != 3 || data[7] != 1)
24 abort ();
25 for (i = 1; i < 4; ++i)
26 if (data[i] != i || data[i + 3] != i)
27 abort ();
28 return 0;