1 /* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
8 char *buffer
= (char*)malloc(256);
10 for (i
=0; i
<255; i
++) {
11 buffer
[i
] = c
; /* { dg-warning "use after 'free' of 'buffer'" "use after free" { xfail *-*-* } } */
12 /* { dg-warning "possibly-NULL 'buffer'" "deref of unchecked" { target *-*-* } .-1 } */
13 free(buffer
); /* { dg-warning "double-'free' of 'buffer'" } */