Module Name:    src
Committed By:   rillig
Date:           Sun Aug  1 14:51:41 UTC 2021

Modified Files:
        src/tests/usr.bin/xlint/lint1: expr_binary.c expr_binary.exp

Log Message:
tests/lint: re-add the test for __uint128_t


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/usr.bin/xlint/lint1/expr_binary.c \
    src/tests/usr.bin/xlint/lint1/expr_binary.exp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/usr.bin/xlint/lint1/expr_binary.c
diff -u src/tests/usr.bin/xlint/lint1/expr_binary.c:1.4 src/tests/usr.bin/xlint/lint1/expr_binary.c:1.5
--- src/tests/usr.bin/xlint/lint1/expr_binary.c:1.4	Sun Aug  1 14:42:21 2021
+++ src/tests/usr.bin/xlint/lint1/expr_binary.c	Sun Aug  1 14:51:41 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: expr_binary.c,v 1.4 2021/08/01 14:42:21 rillig Exp $	*/
+/*	$NetBSD: expr_binary.c,v 1.5 2021/08/01 14:51:41 rillig Exp $	*/
 # 3 "expr_binary.c"
 
 /*
@@ -117,4 +117,13 @@ cover_balance(void)
 	sink(0UL + 0LL);
 	/* expect+1: 'unsigned long long' */
 	sink(0LL + 0UL);
+
+	/*
+	 * Ensure that __int128_t is listed in the integer ranks.  This table
+	 * only becomes relevant when both operands have the same width.
+	 */
+	/* expect+1: '__uint128_t' */
+	sink((__uint128_t)1 + (__int128_t)1);
+	/* expect+1: '__uint128_t' */
+	sink((__int128_t)1 + (__uint128_t)1);
 }
Index: src/tests/usr.bin/xlint/lint1/expr_binary.exp
diff -u src/tests/usr.bin/xlint/lint1/expr_binary.exp:1.4 src/tests/usr.bin/xlint/lint1/expr_binary.exp:1.5
--- src/tests/usr.bin/xlint/lint1/expr_binary.exp:1.4	Sun Aug  1 14:42:21 2021
+++ src/tests/usr.bin/xlint/lint1/expr_binary.exp	Sun Aug  1 14:51:41 2021
@@ -35,3 +35,5 @@ expr_binary.c(111): warning: passing 'un
 expr_binary.c(113): warning: passing 'unsigned long long' to incompatible 'struct incompatible', arg #1 [155]
 expr_binary.c(117): warning: passing 'unsigned long long' to incompatible 'struct incompatible', arg #1 [155]
 expr_binary.c(119): warning: passing 'unsigned long long' to incompatible 'struct incompatible', arg #1 [155]
+expr_binary.c(126): warning: passing '__uint128_t' to incompatible 'struct incompatible', arg #1 [155]
+expr_binary.c(128): warning: passing '__uint128_t' to incompatible 'struct incompatible', arg #1 [155]

Reply via email to