summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/crash31.C
blob: 83cdf2addc0f2d74e4f6f6ec42ffbc3bb1390309 (plain)
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;

}