This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add selftest for pretty-print.c


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]