PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / gcc.dg / pr49948.c
blob8a26d8ede37ed15b534fb724bbe6d66c55faeab0
1 /* PR tree-optimization/49948 */
2 /* { dg-do compile } */
3 /* { dg-require-effective-target pthread } */
4 /* { dg-options "-O3 -ftree-parallelize-loops=2" } */
6 extern int a, *b;
7 int
8 foo (void)
10 int c, d = 8, *e[8], i;
11 if (a <= 7)
13 for (i = 0; i < 8; ++i)
14 e[i] = &c;
15 while (--d)
17 a = 0;
18 b = e[0];
20 return 0;
22 return b == &d;