1 /* Test whether statement with no effect warnings are not given for last
2 statements inside of statement expression. */
3 /* { dg-do compile } */
4 /* { dg-options "-O -Wall" } */
6 void bar (char *p
, char *q
);
14 __builtin_memset (s
, '\0', sizeof (foo
));
15 s
; /* { dg-warning "no effect" "statement with no effect warning" } */
16 s
; /* { dg-bogus "no effect" "bogus statement with no effect warning" } */
19 p
; /* { dg-warning "no effect" "statement with no effect warning" } */