Home | History | Annotate | Line # | Download | only in lint1
msg_142.c revision 1.7
      1 /*	$NetBSD: msg_142.c,v 1.7 2022/06/22 19:23:18 rillig Exp $	*/
      2 # 3 "msg_142.c"
      3 
      4 // Test for message: floating point overflow on operator '%s' [142]
      5 
      6 /* lint1-only-if: ldbl-64 */
      7 /*
      8  * For 96-bit and 128-bit floating point numbers, a different number of
      9  * multipliers is needed to produce an overflow.
     10  */
     11 
     12 /* expect+2: warning: floating point overflow on operator '*' [142] */
     13 /* expect+1: warning: floating point overflow on operator '*' [142] */
     14 double dbl = 1e100 * 1e100 * 1e100 * 1e100 * 1e100;
     15