Files
Pierre-Marie de Rodat 5882985fcd tests/duplicate_postprocess: adapt for restricted runtimes
printf/puts may not be available with some bareboard runtimes. Adapt the
testcase to run even on such restricted configurations.
2023-03-29 08:46:07 +00:00

20 lines
337 B
C

extern void dummy_puts (const char *msg);
#define PRINT_HW dummy_puts ("Hello world!\n");
/* Thanks to macro_stmts_enabled returning 0, macro_stmts is never executed,
and thus we get coverage violations inside macro expansion. */
int
macro_stmts_enabled (void)
{
return 0;
}
void
macro_stmts (void)
{
PRINT_HW;
PRINT_HW;
}