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