1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
// { dg-do assemble } // GROUPS passed old-abort struct mbuf { struct mbuf *next; }; void* malloc(int); struct mbuf * mbuf_allocate(int size) { struct mbuf *bp; bp = (struct mbuf *) malloc( 10 /*(unsigned) (size + sizeof(struct mbuf))*/); return bp; }