Home | History | Annotate | Line # | Download | only in lint1
msg_142.c revision 1.8
      1  1.8  rillig /*	$NetBSD: msg_142.c,v 1.8 2023/03/28 14:44:34 rillig Exp $	*/
      2  1.1  rillig # 3 "msg_142.c"
      3  1.1  rillig 
      4  1.7  rillig // Test for message: floating point overflow on operator '%s' [142]
      5  1.1  rillig 
      6  1.6  rillig /* lint1-only-if: ldbl-64 */
      7  1.8  rillig /* lint1-extra-flags: -X 351 */
      8  1.8  rillig 
      9  1.5  rillig /*
     10  1.5  rillig  * For 96-bit and 128-bit floating point numbers, a different number of
     11  1.5  rillig  * multipliers is needed to produce an overflow.
     12  1.5  rillig  */
     13  1.5  rillig 
     14  1.7  rillig /* expect+2: warning: floating point overflow on operator '*' [142] */
     15  1.7  rillig /* expect+1: warning: floating point overflow on operator '*' [142] */
     16  1.5  rillig double dbl = 1e100 * 1e100 * 1e100 * 1e100 * 1e100;
     17