1 /* 2 930513-1.c from the execute part of the gcc torture suite. 3 */ 4 5 #include <testfwk.h> 6 7 /* { dg-additional-options "-Wl,-u,_printf_float" { target newlib_nano_io } } */ 8 9 #include <stdio.h> 10 char buf[2]; 11 12 #if 0 // TODO: enable when SDCC support K&R-style 13 f (fp) 14 int (*fp)(char *, const char *, ...); 15 { 16 (*fp)(buf, "%.0f", 5.0); 17 } 18 #endif 19 20 void testTortureExecute(void)21testTortureExecute (void) 22 { 23 #if 0 24 f (&sprintf); 25 if (buf[0] != '5' || buf[1] != 0) 26 ASSERT (0); 27 return; 28 #endif 29 } 30 31