1 /* { dg-do compile } */
2 /* { dg-options "-Wmemset-elt-size" } */
16 void foo (struct s
*s
)
18 __builtin_memset (t1
, 0, 20); /* { dg-warning "element size" } */
19 __builtin_memset (t2
, 0, a_n
); /* { dg-warning "element size" } */
20 __builtin_memset (s
->t
, 0, 20); /* { dg-warning "element size" } */
31 void bar (struct s2
*s
)
33 __builtin_memset (u1
, 0, 20);
34 __builtin_memset (u2
, 0, a_n
);
35 __builtin_memset (s
->u
, 0, 20);