diff options
author | Chad Loder <cloder@cvs.openbsd.org> | 2005-12-12 23:41:09 +0000 |
---|---|---|
committer | Chad Loder <cloder@cvs.openbsd.org> | 2005-12-12 23:41:09 +0000 |
commit | 92a23d0c0c5330c7c108a357346c60709c4e2e7a (patch) | |
tree | 41ed2df5e38e6f7cdb8cee3b61d9b5ec5c40c2ee | |
parent | a2efe9d6d463e46b7e235c3f5f889ede44fdc189 (diff) |
Add test for floating point constant in conditional
-rw-r--r-- | regress/usr.bin/xlint/test-14.c | 5 | ||||
-rw-r--r-- | regress/usr.bin/xlint/test-14.c.exp | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/regress/usr.bin/xlint/test-14.c b/regress/usr.bin/xlint/test-14.c index a9e12daaed1..beace1f9f3e 100644 --- a/regress/usr.bin/xlint/test-14.c +++ b/regress/usr.bin/xlint/test-14.c @@ -1,4 +1,4 @@ -/* $OpenBSD: test-14.c,v 1.1 2005/12/12 23:37:51 cloder Exp $ */ +/* $OpenBSD: test-14.c,v 1.2 2005/12/12 23:41:08 cloder Exp $ */ /* * Placed in the public domain by Chad Loder <cloder@openbsd.org>. @@ -37,6 +37,9 @@ main(int argc, char *argv[]) argc++; } + if (1.0) { /* warn */ + } + return 0; } diff --git a/regress/usr.bin/xlint/test-14.c.exp b/regress/usr.bin/xlint/test-14.c.exp index bd35832774c..42be998e9fd 100644 --- a/regress/usr.bin/xlint/test-14.c.exp +++ b/regress/usr.bin/xlint/test-14.c.exp @@ -1,3 +1,4 @@ test-14.c:26: warning: constant in conditional context test-14.c:36: warning: constant in conditional context +test-14.c:40: warning: constant in conditional context Lint pass2: |