2014-04-14 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / graphite / pr55022.c
blobc631c0e23e68a279dfb37fe362b1d1e4d1b02f9d
1 /* { dg-do run } */
2 /* { dg-options "-O2 -fgraphite-identity" } */
4 extern void abort (void);
6 void __attribute__((noinline,noclone))
7 f(int *limit, int minLen, int maxLen)
9 int i;
11 for (i = minLen; i <= maxLen; i++) {
12 limit[i] = i;
16 int main()
18 int limit[256], i;
19 f (limit, 0, 255);
20 for (i = 0; i < 256; ++i)
22 if (limit[i] != i)
23 abort ();
24 __asm__ volatile ("" : : : "memory");
26 return 0;