Introduction
Statistics
Contact
Development
Disclaimer
Help
ftp.icm.edu.pl home page
/* $NetBSD: msg_142.c,v 1.12 2024/06/08 06:42:59 rillig Exp $ */
# 3 "msg_142.c"
// Test for message: operator '%s' produces floating point overflow [142]
/* lint1-extra-flags: -X 351 */
/*
* For 96-bit and 128-bit floating point numbers, a different number of
* multipliers is needed to produce an overflow.
*/
/* expect+2: warning: operator '*' produces floating point overflow [142] */
/* expect+1: warning: operator '*' produces floating point overflow [142] */
double dbl = 1e100 * 1e100 * 1e100 * 1e100 * 1e100;
/*
* Ensure that an addition in the complex number space doesn't generate
* wrong warnings. Lint doesn't model complex constants accurately.
*/
double _Complex complex_sum = 1e308 + 1e308i;