Home | History | Annotate | Line # | Download | only in lint1
msg_132_lp64.c revision 1.2
      1 /*	$NetBSD: msg_132_lp64.c,v 1.2 2023/07/07 19:45:22 rillig Exp $	*/
      2 # 3 "msg_132_lp64.c"
      3 
      4 // Test for message: conversion from '%s' to '%s' may lose accuracy [132]
      5 
      6 /* lint1-extra-flags: -a -X 351 */
      7 /* lint1-only-if: lp64 */
      8 
      9 unsigned int
     10 convert_pointer_to_smaller_integer(void *ptr)
     11 {
     12 	/* expect+1: warning: conversion from 'unsigned long' to 'unsigned int' may lose accuracy [132] */
     13 	return (unsigned long)(ptr) >> 12;
     14 }
     15