From fd593a3df97b2d4742d2c81ba81d3edfdf5ac342 Mon Sep 17 00:00:00 2001 From: bernhardheld Date: Thu, 22 May 2003 15:28:36 +0000 Subject: [PATCH] make z80 clearly failing this test git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2640 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- support/regression/tests/zeropad.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/support/regression/tests/zeropad.c b/support/regression/tests/zeropad.c index a2d9004d..d8cab98a 100644 --- a/support/regression/tests/zeropad.c +++ b/support/regression/tests/zeropad.c @@ -5,7 +5,6 @@ #include #if defined(PORT_HOST) || defined(SDCC_z80) || defined(SDCC_gbz80) -# define data # define idata # define xdata # define code @@ -16,7 +15,7 @@ struct x { char b[10]; }; -struct x {storage} teststruct[3] = { +struct x {storage} teststruct[6] = { { 10, { 1, 2, 3, 4, 5} }, { 20, { 11 } }, { 30, { 6, 7, 8} } @@ -25,11 +24,12 @@ struct x {storage} teststruct[3] = { void testZeropad(void) { + ASSERT(teststruct[0].b[1] == 2); ASSERT(teststruct[0].b[5] == 0); ASSERT(teststruct[1].b[0] == 11); ASSERT(sizeof(teststruct[2].a) == 2); ASSERT(sizeof(teststruct[1].b) == 10); ASSERT(sizeof(teststruct[1]) == 12); - ASSERT(sizeof(teststruct) == 36); + ASSERT(sizeof(teststruct) == 72); } -- 2.30.2