Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/usr.bin/xlint/lint1 tests/lint: fix test c11_generic_e...



details:   https://anonhg.NetBSD.org/src/rev/3c2a07f2dab9
branches:  trunk
changeset: 1022696:3c2a07f2dab9
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Aug 01 21:12:31 2021 +0000

description:
tests/lint: fix test c11_generic_expression on ILP32

These platforms don't provide __uint128_t, at least not in lint.

The exact data type does not matter in this test, it just has to be
different from 'int'.

diffstat:

 tests/usr.bin/xlint/lint1/c11_generic_expression.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (17 lines):

diff -r 979deeb5f5d8 -r 3c2a07f2dab9 tests/usr.bin/xlint/lint1/c11_generic_expression.c
--- a/tests/usr.bin/xlint/lint1/c11_generic_expression.c        Sun Aug 01 21:00:41 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/c11_generic_expression.c        Sun Aug 01 21:12:31 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: c11_generic_expression.c,v 1.9 2021/08/01 13:09:38 rillig Exp $        */
+/*     $NetBSD: c11_generic_expression.c,v 1.10 2021/08/01 21:12:31 rillig Exp $       */
 # 3 "c11_generic_expression.c"
 
 /*
@@ -101,6 +101,6 @@
  * covered by the compilers, so there is no need for lint to double-check it.
  */
 const char *x = _Generic(
-    (__uint128_t)1 + 1.0f,
+    1ULL + 1.0f,
     int: 1
 );



Home | Main Index | Thread Index | Old Index