[BACK]Return to expr_fold.exp CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / tests / usr.bin / xlint / lint1

File: [cvs.NetBSD.org] / src / tests / usr.bin / xlint / lint1 / Attic / expr_fold.exp (download)

Revision 1.4, Sun Aug 22 21:17:04 2021 UTC (2 years, 7 months ago) by rillig
Branch: MAIN
Changes since 1.3: +0 -1 lines

lint: fix folding of comparisons in constant expressions

expr_fold.c(35): warning: argument #1 is converted from 'long' to 'int' due to prototype [259]
expr_fold.c(35): warning: conversion of 'long' to 'int' is out of range, arg #1 [295]
expr_fold.c(39): warning: argument #1 is converted from 'long' to 'int' due to prototype [259]
expr_fold.c(39): warning: conversion of 'long' to 'int' is out of range, arg #1 [295]
expr_fold.c(44): warning: argument #1 is converted from 'long' to 'unsigned int' due to prototype [259]
expr_fold.c(46): warning: argument #1 is converted from 'long' to 'unsigned int' due to prototype [259]
expr_fold.c(64): warning: argument #1 is converted from 'long' to 'int' due to prototype [259]
expr_fold.c(68): warning: argument #1 is converted from 'long' to 'int' due to prototype [259]
expr_fold.c(72): warning: integer overflow detected, op + [141]
expr_fold.c(72): warning: integer overflow detected, op - [141]
expr_fold.c(74): warning: integer overflow detected, op - [141]
expr_fold.c(77): warning: argument #1 is converted from 'long' to 'int' due to prototype [259]
expr_fold.c(77): warning: conversion of 'long' to 'int' is out of range, arg #1 [295]
expr_fold.c(82): warning: argument #1 is converted from 'int' to 'unsigned int' due to prototype [259]
expr_fold.c(82): warning: conversion of negative constant to unsigned type, arg #1 [296]
expr_fold.c(85): warning: argument #1 is converted from 'long' to 'unsigned int' due to prototype [259]
expr_fold.c(85): warning: conversion of negative constant to unsigned type, arg #1 [296]
expr_fold.c(88): warning: argument #1 is converted from 'long' to 'unsigned int' due to prototype [259]
expr_fold.c(88): warning: conversion of negative constant to unsigned type, arg #1 [296]
expr_fold.c(98): warning: argument #1 is converted from 'long' to 'int' due to prototype [259]
expr_fold.c(98): warning: conversion of 'long' to 'int' is out of range, arg #1 [295]
expr_fold.c(101): warning: argument #1 is converted from 'long' to 'int' due to prototype [259]
expr_fold.c(101): warning: conversion of 'long' to 'int' is out of range, arg #1 [295]
expr_fold.c(105): warning: argument #1 is converted from 'int' to 'unsigned int' due to prototype [259]
expr_fold.c(105): warning: conversion of negative constant to unsigned type, arg #1 [296]
expr_fold.c(108): warning: argument #1 is converted from 'int' to 'unsigned int' due to prototype [259]
expr_fold.c(108): warning: conversion of negative constant to unsigned type, arg #1 [296]
expr_fold.c(111): warning: argument #1 is converted from 'long' to 'unsigned int' due to prototype [259]
expr_fold.c(111): warning: conversion of negative constant to unsigned type, arg #1 [296]
expr_fold.c(114): warning: argument #1 is converted from 'long' to 'unsigned int' due to prototype [259]
expr_fold.c(114): warning: conversion of negative constant to unsigned type, arg #1 [296]
expr_fold.c(122): warning: integer overflow detected, op * [141]
expr_fold.c(124): warning: integer overflow detected, op * [141]
expr_fold.c(129): warning: integer overflow detected, op * [141]
expr_fold.c(138): error: division by 0 [139]
expr_fold.c(138): warning: integer overflow detected, op / [141]
expr_fold.c(142): warning: argument #1 is converted from 'long' to 'int' due to prototype [259]
expr_fold.c(142): warning: conversion of 'long' to 'int' is out of range, arg #1 [295]
expr_fold.c(149): error: modulus by 0 [140]
expr_fold.c(151): error: modulus by 0 [140]
expr_fold.c(153): error: modulus by 0 [140]
expr_fold.c(155): error: modulus by 0 [140]
expr_fold.c(158): warning: argument #1 is converted from 'long' to 'int' due to prototype [259]
expr_fold.c(165): warning: integer overflow detected, op + [141]
expr_fold.c(171): warning: integer overflow detected, op + [141]
expr_fold.c(188): warning: integer overflow detected, op - [141]
expr_fold.c(192): warning: integer overflow detected, op - [141]
expr_fold.c(195): warning: argument #1 is converted from 'long' to 'int' due to prototype [259]
expr_fold.c(197): warning: integer overflow detected, op - [141]
expr_fold.c(204): warning: integer overflow detected, op << [141]
expr_fold.c(207): warning: integer overflow detected, op << [141]
expr_fold.c(211): warning: shift amount 104 is greater than bit-size 32 of 'unsigned int' [122]
expr_fold.c(223): warning: shift amount 104 is greater than bit-size 32 of 'int' [122]