1 /* { dg-do compile { target { c || c++11 } } } */
2 /* { dg-options "-Wall" } */
3 /* { dg-additional-options "-std=gnu99" { target c } } */
5 typedef __SIZE_TYPE__
size_t;
10 void *memset (void *, int, size_t);
16 memset (buf
, sizeof buf
, u
'\0'); /* { dg-warning ".memset. used with constant zero length parameter; this could be due to transposed parameters" } */
17 memset (buf
, sizeof buf
, U
'\0'); /* { dg-warning ".memset. used with constant zero length parameter; this could be due to transposed parameters" } */
18 memset (buf
, u
'\0', 0);
19 memset (buf
, U
'\0', 0);