Add new test to verify that the array index, limit, and stride are
[official-gcc.git] / gcc / testsuite / gcc.dg / pr50161.c
blobb76ff9a0c72f8a77e7a385fbd57654cedc4936a7
1 /* PR middle-end/50161 */
2 /* { dg-do run } */
3 /* { dg-options "-O2 -fno-tree-ter -funroll-loops" } */
5 extern void abort (void);
7 int
8 main ()
10 unsigned i;
11 unsigned long a[16];
13 for (i = 0; i < 16; i++)
14 a[i] = ~0UL;
16 for (i = 0; i < 16; i++)
17 if (__builtin_popcountl (a[i]) != sizeof (a[i]) * 8)
18 abort ();
20 return 0;