1 /* $NetBSD: msg_142.c,v 1.6 2021/08/21 11:50:57 rillig Exp $ */ 2 # 3 "msg_142.c" 3 4 // Test for message: floating point overflow detected, op %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 detected, op * [142] */ 13 /* expect+1: warning: floating point overflow detected, op * [142] */ 14 double dbl = 1e100 * 1e100 * 1e100 * 1e100 * 1e100; 15