With llvm and samr21-xpro, I could not directly do 'printf == iprintf'. But doing `(printf - iprintf) == 0` correctly checked if they are equal. Co-authored-by: Kaspar Schleiser <kaspar@schleiser.de>
About
Terifies if newlib/newlib-nano is correctly included by the build system
At compile time, it checks that:
- newlib-nano header is used when 'newlib-nano' module is included
- newlib or newlib-nano is properly linked
iprintfis the same asprintfor not as mentionned in:f157c994b9/newlib/README.nano (L32)
At runtime, it checks that:
- the same
iprintfandprintftest as at compile time
Without newlib, the test does nothing.