1 /** setjmp/longjmp tests (focusing on getting the return value right).
5 #if !defined(__SDCC_pic14) // Unimplemented setjmp
22 ASSERT(r
== 1); // When called with an argument of 0, longjmp() makes setjmp() return 1 instead.
31 ASSERT(r
== 42); // There used to be a bug affecting the Rabbit ports where return values other than 0/1 were wrong.
36 ASSERT(r
== 0x5a5); // Ensure that we get the upper byte correct, too.