diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-09-04 19:50:30 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:43:24 -0500 |
commit | 20fcce5ceb701cfdcdc37172d7811bc6a7a554c3 (patch) | |
tree | f1d2ec0da3faee285ceb5a53a35d295ca4a77838 | |
parent | 86f4ca84f2df2aa8977eb24828e3aa840dda7201 (diff) | |
download | samba-20fcce5ceb701cfdcdc37172d7811bc6a7a554c3.tar.gz samba-20fcce5ceb701cfdcdc37172d7811bc6a7a554c3.tar.xz samba-20fcce5ceb701cfdcdc37172d7811bc6a7a554c3.zip |
r18048: More nested structures
-rw-r--r-- | source/lib/talloctort.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/source/lib/talloctort.c b/source/lib/talloctort.c index 8640e9475ea..ae533399bc6 100644 --- a/source/lib/talloctort.c +++ b/source/lib/talloctort.c @@ -609,6 +609,14 @@ static BOOL test_realloc(void) return True; } +struct el2 { + const char *name; +}; + +struct el1 { + int count; + struct el2 **list, **list2, **list3; +}; /* test realloc with a child @@ -616,12 +624,7 @@ static BOOL test_realloc(void) static BOOL test_realloc_child(void) { void *root; - struct el1 { - int count; - struct el2 { - const char *name; - } **list, **list2, **list3; - } *el1; + struct el1 *el1; struct el2 *el2; printf("TESTING REALLOC WITH CHILD\n"); |