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 lint: add test for missing check i...



details:   https://anonhg.NetBSD.org/src/rev/f7d6bdc1112f
branches:  trunk
changeset: 1017927:f7d6bdc1112f
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Jan 16 16:58:39 2021 +0000

description:
lint: add test for missing check in strict bool mode

diffstat:

 tests/usr.bin/xlint/lint1/d_c99_bool_strict.c |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 5a28cc921f43 -r f7d6bdc1112f tests/usr.bin/xlint/lint1/d_c99_bool_strict.c
--- a/tests/usr.bin/xlint/lint1/d_c99_bool_strict.c     Sat Jan 16 16:53:23 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_c99_bool_strict.c     Sat Jan 16 16:58:39 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: d_c99_bool_strict.c,v 1.9 2021/01/16 16:03:47 rillig Exp $     */
+/*     $NetBSD: d_c99_bool_strict.c,v 1.10 2021/01/16 16:58:39 rillig Exp $    */
 # 3 "d_c99_bool_strict.c"
 
 /*
@@ -708,3 +708,10 @@
        if (flags & FLAG28)
                println("FLAG28 is set");
 }
+
+
+bool
+strict_bool_operator_eq_bool_int(void)
+{
+       return strict_bool_conversion_return_false() == 0; /* TODO: expect */
+}



Home | Main Index | Thread Index | Old Index