[PATCH] Add selftest for pretty-print.c

Bernd Schmidt bschmidt@redhat.com
Tue Jun 7 10:03:00 GMT 2016


On 06/06/2016 11:28 PM, David Malcolm wrote:
> +  assert_pp_format ("0xcafebabe", "%wx", (HOST_WIDE_INT)0xcafebabe);

More interesting tests would be to have multiple arguments to test that 
we really used the right size for the varargs. Maybe append a single %d 
arg with a unique bit pattern to all of them?

Otherwise ok.


Bernd



More information about the Gcc-patches mailing list