PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / pr84095.c
blobaf2bc0e3f258c0103fa0de04aaaac10fde7a1cf1
1 /* PR tree-optimization/84095 - false-positive -Wrestrict warnings for
2 memcpy within array
3 { dg-do compile }
4 { dg-options "-O2 -Wrestrict" } */
6 struct { int i; } a[8];
8 void f (void)
10 int i;
12 for (i = 1; i < 8; i++)
13 __builtin_memcpy (&a[i], &a[0], sizeof(a[0])); /* { dg-bogus "\\\[-Wrestrict]" } */