/* 20030626-1.c from the execute part of the gcc torture tests. */ #include #ifdef __SDCC #pragma std_c99 #endif #include char buf[10]; void testTortureExecute (void) { #if !defined( __SDCC_pdk14) && !defined(__SDCC_pdk15) // Lack of memory int l = sprintf (buf, "foo\0bar"); if (l != 3) ASSERT (0); return; #endif }