/* 930513-1.c from the execute part of the gcc torture suite. */ #include #include char buf[12]; void f (int (*fp)(char *, const char *, ...)) { (*fp)(buf, "%.0f", 5.0); } void testTortureExecute (void) { #if !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15) // Lack of memory f (&sprintf); ASSERT ((buf[0] == '<' && buf[1] == 'N') || // """ (buf[0] == '5' && buf[1] == 0)); // "5" #endif }