1 /* { dg-do compile } */
2 /* { dg-additional-options "-Wno-stringop-overflow" } */
3 /* The loop below writes past the end of the global object a.
4 When the loop is transformed into a call to memcpy the buffer
5 overflow is detected and diagnosed by the -Wstringop-overflow
6 option enabled by default. */
8 typedef unsigned size_t;
10 unsigned char buf
[sizeof(long)];
17 for (; c
< sizeof(long);)
26 for (; i
< sizeof(long); i
++)