Searched refs:ap5 (Results 1 - 1 of 1) sorted by relevance

/external/clang/test/Analysis/
H A Dmalloc-sizeof.c26 struct A *ap5 = calloc(4, sizeof(struct B)); // expected-warning {{Result of 'calloc' is converted to a pointer of type 'struct A', which is incompatible with sizeof operand type 'struct B'}} local
27 struct A *ap6 = realloc(ap5, sizeof(struct A));
28 struct A *ap7 = realloc(ap5, sizeof(struct B)); // expected-warning {{Result of 'realloc' is converted to a pointer of type 'struct A', which is incompatible with sizeof operand type 'struct B'}}

Completed in 15 milliseconds