1 /* PR tree-optimization/84095 - false-positive -Wrestrict warnings for 2 memcpy within array 3 { dg-do compile } 4 { dg-options "-O2 -Wrestrict" } */ 5 6 struct { int i; } a[8]; 7 f(void)8void f (void) 9 { 10 int i; 11 12 for (i = 1; i < 8; i++) 13 __builtin_memcpy (&a[i], &a[0], sizeof(a[0])); /* { dg-bogus "\\\[-Wrestrict]" } */ 14 } 15