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