/*
* Test features that only apply to platforms on which size_t is unsigned
* long and ptr_diff is signed long.
*/
/* lint1-only-if: long */
/* lint1-extra-flags: -c -h -a -p -b -r -z -X 351 */
void to_size(typeof(sizeof(int)));
/* See should_warn_about_prototype_conversion. */
void
convert_unsigned_char_to_size(unsigned char uc)
{
/*
* In this function call, uc is first promoted to INT. It is then
* converted to size_t, which is ULONG. The portable rank of INT
* (see INT_RANK in inittyp.c) is lower than the rank of ULONG.
* Since the portable rank increases, there is no warning.
*
* XXX: Investigate whether this rule makes sense. Warning 259 is
* about prototype mismatch, not about lossy integer conversions,
* and there is a clear mismatch here between INT and LONG,
* therefore a warning makes sense.
*/
to_size(uc);
}