summaryrefslogtreecommitdiff
path: root/regress/usr.bin/xlint/test-14.c
diff options
context:
space:
mode:
Diffstat (limited to 'regress/usr.bin/xlint/test-14.c')
-rw-r--r--regress/usr.bin/xlint/test-14.c46
1 files changed, 0 insertions, 46 deletions
diff --git a/regress/usr.bin/xlint/test-14.c b/regress/usr.bin/xlint/test-14.c
deleted file mode 100644
index beace1f9f3e..00000000000
--- a/regress/usr.bin/xlint/test-14.c
+++ /dev/null
@@ -1,46 +0,0 @@
-/* $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>.
- *
- * Test lint warnings regarding constant in conditional contexts.
- */
-
-/* ARGSUSED */
-int
-main(int argc, char *argv[])
-{
- do {
- argc++;
- } while (0); /* do not warn */
-
- do {
- if (argc++)
- break;
- } while (1); /* do not warn */
-
-
- do {
- if (argc++)
- break;
- } while (2); /* warn because of 2 */
-
- if (0) { /* do not warn */
- argc++;
- }
-
- if (1) { /* do not warn */
- argc++;
- }
-
- if (argc && 1) { /* warn because of compound expression */
- argc++;
- }
-
- if (1.0) { /* warn */
- }
-
- return 0;
-}
-
-