msg_142.c revision 1.8 1 /* $NetBSD: msg_142.c,v 1.8 2023/03/28 14:44:34 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 /* lint1-extra-flags: -X 351 */
8
9 /*
10 * For 96-bit and 128-bit floating point numbers, a different number of
11 * multipliers is needed to produce an overflow.
12 */
13
14 /* expect+2: warning: floating point overflow on operator '*' [142] */
15 /* expect+1: warning: floating point overflow on operator '*' [142] */
16 double dbl = 1e100 * 1e100 * 1e100 * 1e100 * 1e100;
17