c++: Implement for namespace statics CWG 2867 - Order of initialization for structure...
[official-gcc.git] / gcc / testsuite / gcc.dg / pr99578-3.c
blobef563243dbfacb5ca18a053049cbc56a01d30e0d
1 /* PR middle-end/99578 */
2 /* { dg-do compile { target size32plus } } */
3 /* { dg-options "-O2 -Wstringop-overread" } */
5 struct S { unsigned int s; };
6 extern struct S v;
7 extern void *memcpy (void *, const void *, __SIZE_TYPE__);
9 void
10 foo (void)
12 memcpy (&v, (void *)(0xe8ffc000), sizeof (struct S)); /* { dg-bogus "from a region of size 0" } */