summaryrefslogtreecommitdiff
path: root/regress/usr.bin
diff options
context:
space:
mode:
Diffstat (limited to 'regress/usr.bin')
-rw-r--r--regress/usr.bin/Makefile4
-rw-r--r--regress/usr.bin/xlint/Makefile25
-rw-r--r--regress/usr.bin/xlint/test-1.c21
-rw-r--r--regress/usr.bin/xlint/test-1.c.exp3
-rw-r--r--regress/usr.bin/xlint/test-10.c23
-rw-r--r--regress/usr.bin/xlint/test-10.c.exp2
-rw-r--r--regress/usr.bin/xlint/test-11.c134
-rw-r--r--regress/usr.bin/xlint/test-11.c.exp16
-rw-r--r--regress/usr.bin/xlint/test-12.c30
-rw-r--r--regress/usr.bin/xlint/test-12.c.exp2
-rw-r--r--regress/usr.bin/xlint/test-13.c29
-rw-r--r--regress/usr.bin/xlint/test-13.c.exp3
-rw-r--r--regress/usr.bin/xlint/test-14.c46
-rw-r--r--regress/usr.bin/xlint/test-14.c.exp4
-rw-r--r--regress/usr.bin/xlint/test-15.c49
-rw-r--r--regress/usr.bin/xlint/test-15.c.exp11
-rw-r--r--regress/usr.bin/xlint/test-16.c22
-rw-r--r--regress/usr.bin/xlint/test-16.c.exp1
-rw-r--r--regress/usr.bin/xlint/test-17.c49
-rw-r--r--regress/usr.bin/xlint/test-17.c.exp4
-rw-r--r--regress/usr.bin/xlint/test-18.c23
-rw-r--r--regress/usr.bin/xlint/test-18.c.exp3
-rw-r--r--regress/usr.bin/xlint/test-19.c498
-rw-r--r--regress/usr.bin/xlint/test-19.c.exp117
-rw-r--r--regress/usr.bin/xlint/test-2.c38
-rw-r--r--regress/usr.bin/xlint/test-2.c.exp15
-rw-r--r--regress/usr.bin/xlint/test-20.c61
-rw-r--r--regress/usr.bin/xlint/test-20.c.exp21
-rw-r--r--regress/usr.bin/xlint/test-21.c22
-rw-r--r--regress/usr.bin/xlint/test-21.c.exp3
-rw-r--r--regress/usr.bin/xlint/test-22.c17
-rw-r--r--regress/usr.bin/xlint/test-22.c.exp2
-rw-r--r--regress/usr.bin/xlint/test-23.c65
-rw-r--r--regress/usr.bin/xlint/test-23.c.exp9
-rw-r--r--regress/usr.bin/xlint/test-24.c124
-rw-r--r--regress/usr.bin/xlint/test-24.c.exp22
-rw-r--r--regress/usr.bin/xlint/test-25.c266
-rw-r--r--regress/usr.bin/xlint/test-25.c.exp38
-rw-r--r--regress/usr.bin/xlint/test-26.c22
-rw-r--r--regress/usr.bin/xlint/test-26.c.exp5
-rw-r--r--regress/usr.bin/xlint/test-3.c26
-rw-r--r--regress/usr.bin/xlint/test-3.c.exp1
-rw-r--r--regress/usr.bin/xlint/test-4.c31
-rw-r--r--regress/usr.bin/xlint/test-4.c.exp2
-rw-r--r--regress/usr.bin/xlint/test-5.c39
-rw-r--r--regress/usr.bin/xlint/test-5.c.exp4
-rw-r--r--regress/usr.bin/xlint/test-6.c27
-rw-r--r--regress/usr.bin/xlint/test-6.c.exp3
-rw-r--r--regress/usr.bin/xlint/test-7.c17
-rw-r--r--regress/usr.bin/xlint/test-7.c.exp2
-rw-r--r--regress/usr.bin/xlint/test-8.c18
-rw-r--r--regress/usr.bin/xlint/test-8.c.exp2
-rw-r--r--regress/usr.bin/xlint/test-8.h4
-rw-r--r--regress/usr.bin/xlint/test-9.c19
-rw-r--r--regress/usr.bin/xlint/test-9.c.exp2
55 files changed, 2 insertions, 2044 deletions
diff --git a/regress/usr.bin/Makefile b/regress/usr.bin/Makefile
index 416d12b85bb..000ce8109fe 100644
--- a/regress/usr.bin/Makefile
+++ b/regress/usr.bin/Makefile
@@ -1,9 +1,9 @@
-# $OpenBSD: Makefile,v 1.25 2012/07/02 12:02:36 espie Exp $
+# $OpenBSD: Makefile,v 1.26 2012/07/28 19:07:07 guenther Exp $
# $NetBSD: Makefile,v 1.1 1997/12/30 23:27:11 cgd Exp $
SUBDIR+= basename bc cap_mkdb dc diff diff3 dirname file grep gzip gzsig
SUBDIR+= libtool
SUBDIR+= m4 make mandoc patch pkg-config rcs sdiff sed sort ssh tsort
-SUBDIR+= xargs xlint
+SUBDIR+= xargs
.include <bsd.subdir.mk>
diff --git a/regress/usr.bin/xlint/Makefile b/regress/usr.bin/xlint/Makefile
deleted file mode 100644
index 07acc15a398..00000000000
--- a/regress/usr.bin/xlint/Makefile
+++ /dev/null
@@ -1,25 +0,0 @@
-# $OpenBSD: Makefile,v 1.29 2011/05/31 22:35:19 martynas Exp $
-
-TEST_MODULES= 1 2 3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 \
- 23 24 25 26
-LINT= lint
-
-.for i in ${TEST_MODULES}
-REGRESS_TARGETS+= test-${i}
-GENERATE_TARGETS+=generate-${i}
-test-${i}:
- ${LINT} ${LINTFLAGS} test-${i}.c 2>&1 | diff -u ${.CURDIR}/test-${i}.c.exp -
-
-generate-${i}:
- ${LINT} ${LINTFLAGS} test-${i}.c 2>&1 > ${.CURDIR}/test-${i}.c.exp
-.endfor
-
-.PHONY: ${REGRESS_TARGETS} generate ${GENERATE_TARGETS}
-
-generate: ${GENERATE_TARGETS}
-
-
-NOOBJ= Yes
-
-.include <bsd.regress.mk>
-
diff --git a/regress/usr.bin/xlint/test-1.c b/regress/usr.bin/xlint/test-1.c
deleted file mode 100644
index fa1dc2717ad..00000000000
--- a/regress/usr.bin/xlint/test-1.c
+++ /dev/null
@@ -1,21 +0,0 @@
-/* $OpenBSD: test-1.c,v 1.2 2005/11/21 19:37:11 cloder Exp $ */
-
-/*
- * Placed in the public domain by Chad Loder <cloder@openbsd.org>.
- *
- * Test the ARGSUSED feature of lint.
- */
-
-int
-unusedargs(int unused)
-{
- return 0;
-}
-
-/* ARGSUSED */
-int
-main(int argc, char* argv[])
-{
- unusedargs(1);
- return 0;
-}
diff --git a/regress/usr.bin/xlint/test-1.c.exp b/regress/usr.bin/xlint/test-1.c.exp
deleted file mode 100644
index 1aa963f1ea1..00000000000
--- a/regress/usr.bin/xlint/test-1.c.exp
+++ /dev/null
@@ -1,3 +0,0 @@
-test-1.c:10: warning: argument unused unused in function unusedargs()
-Lint pass2:
-unusedargs returns value which is always ignored
diff --git a/regress/usr.bin/xlint/test-10.c b/regress/usr.bin/xlint/test-10.c
deleted file mode 100644
index cacd4094ce6..00000000000
--- a/regress/usr.bin/xlint/test-10.c
+++ /dev/null
@@ -1,23 +0,0 @@
-/* $OpenBSD: test-10.c,v 1.2 2005/12/09 03:34:34 cloder Exp $ */
-
-/*
- * Placed in the public domain by Chad Loder <cloder@openbsd.org>.
- *
- * Test lint warning about literal char assignments.
- */
-#include <limits.h>
-
-/* ARGSUSED */
-int
-main(int argc, char *argv[])
-{
- unsigned char c;
-
- c = '\377'; /* should not warn, because c is a char type */
- c = -1; /* should warn, because rvalue is not a char literal */
- c++;
-
- return 0;
-}
-
-
diff --git a/regress/usr.bin/xlint/test-10.c.exp b/regress/usr.bin/xlint/test-10.c.exp
deleted file mode 100644
index 2ebee3fa0fe..00000000000
--- a/regress/usr.bin/xlint/test-10.c.exp
+++ /dev/null
@@ -1,2 +0,0 @@
-test-10.c:17: warning: assignment of negative constant to unsigned type
-Lint pass2:
diff --git a/regress/usr.bin/xlint/test-11.c b/regress/usr.bin/xlint/test-11.c
deleted file mode 100644
index 1df0073680d..00000000000
--- a/regress/usr.bin/xlint/test-11.c
+++ /dev/null
@@ -1,134 +0,0 @@
-/* $OpenBSD: test-11.c,v 1.3 2007/10/08 08:18:35 gilles Exp $ */
-
-/*
- * Placed in the public domain by Chad Loder <cloder@openbsd.org>.
- *
- * Test lint parsing of gcc's __attribute__ syntax.
- */
-
-/* Define this here so we don't need to pull in a header */
-void exit(int);
-
-/*
- * A function prototype with a single attribute before.
- */
-__attribute__((__noreturn__)) void foo1(void);
-
-/*
- * A function prototype with a multiple attributes before.
- */
-__attribute__((__noreturn__))
-__attribute__((__pure__))
-__attribute__((__section__("text")))
-void foo2(void);
-
-/*
- * A function prototype with a single attribute after.
- */
-void foo3(void) __attribute__((__noreturn__));
-
-/*
- * A function prototype with multiple attributes after.
- */
-void foo4(void)
- __attribute__((__noreturn__))
- __attribute__((__pure__))
- __attribute__((__section__("text")));
-
-/*
- * A function prototype with multiple attributes after,
- * one of which (volatile) is stupidly also a C keyword.
- */
-__attribute__((__noreturn__)) void foo5(const char *, ...)
- __attribute__((volatile, __format__ (printf, 1, 2)));
-
-/*
- * A function prototype with unnamed parameters having attributes.
- */
-void foo6(char[], int __attribute__((unused)));
-
-/*
- * A function prototype with named parameters having attributes.
- */
-void foo7(char func[], int i __attribute__((unused)));
-
-/*
- * A function definition with a single attribute before.
- */
-__attribute__((__noreturn__)) void
-foo8(void)
-{
- exit(0);
-}
-
-/*
- * A function definition with multiple attributes before.
- */
-__attribute__((__noreturn__))
-__attribute__((__pure__))
-__attribute__((__section__("text")))
-void
-foo9(void)
-{
- exit(0);
-}
-
-/*
- * A struct type having members with attributes.
- */
-typedef
-struct mystruct {
- unsigned char c_data[128] __packed;
- unsigned int u_data[128] __packed;
-} mystruct_t;
-
-
-/*
- * A struct with attributes.
- */
-struct mystruct2 {
- unsigned char c_data[128];
-} __packed;
-
-/*
- * A typedef with an attribute after the typename.
- */
-typedef int more_aligned_int __attribute__ ((aligned (8)));
-
-/*
- * A typedef with attributes before the typename.
- */
-typedef short __attribute__((__may_alias__)) short_a;
-
-
-/*
- * A variable declaration with attributes.
- */
-int sh __attribute__((__section__ ("shared")));
-
-/*
- * A variable declaration with attributes and initializer.
- */
-int sh2 __attribute__((__section__ ("shared"))) = 0;
-
-/*
- * A simple indirection: "pointer to 8-bit aligned pointer to char"
- */
-char * __attribute__((__aligned__(8))) *pac;
-
-/*
- * A really tough one with multiple indirections that even older
- * gcc has problems with.
- */
-void (****f)(void) __attribute__((__noreturn__));
-
-int
-main(int argc, char* argv[])
-{
- return 0;
-}
-
-
-
-
-
diff --git a/regress/usr.bin/xlint/test-11.c.exp b/regress/usr.bin/xlint/test-11.c.exp
deleted file mode 100644
index 2e3b18a0968..00000000000
--- a/regress/usr.bin/xlint/test-11.c.exp
+++ /dev/null
@@ -1,16 +0,0 @@
-test-11.c(126): warning: argument argc unused in function main
-test-11.c(126): warning: argument argv unused in function main
-Lint pass2:
-foo1 declared( test-11.c(15) ), but never used or defined
-foo2 declared( test-11.c(23) ), but never used or defined
-foo3 declared( test-11.c(28) ), but never used or defined
-foo4 declared( test-11.c(36) ), but never used or defined
-foo5 declared( test-11.c(43) ), but never used or defined
-foo6 declared( test-11.c(48) ), but never used or defined
-foo7 declared( test-11.c(53) ), but never used or defined
-foo8 defined( test-11.c(59) ), but never used
-foo9 defined( test-11.c(71) ), but never used
-pac defined( test-11.c(117) ), but never used
-f defined( test-11.c(123) ), but never used
-sh2 defined( test-11.c(112) ), but never used
-sh defined( test-11.c(107) ), but never used
diff --git a/regress/usr.bin/xlint/test-12.c b/regress/usr.bin/xlint/test-12.c
deleted file mode 100644
index 0dd7450fe95..00000000000
--- a/regress/usr.bin/xlint/test-12.c
+++ /dev/null
@@ -1,30 +0,0 @@
-/* $OpenBSD: test-12.c,v 1.2 2005/12/10 19:20:21 cloder Exp $ */
-
-/*
- * Placed in the public domain by Chad Loder <cloder@openbsd.org>.
- *
- * Test lint warnings regarding assignment in conditional context.
- */
-#include <limits.h>
-
-/* ARGSUSED */
-int
-main(int argc, char *argv[])
-{
- int a = 0;
-
- if (a = argc) /* should warn */
- return 1;
-
- a++;
-
- if ((a = argc)) /* should not warn */
- return 1;
-
- for (a = 0; a < 10; a++)
- a = a;
-
- return 0;
-}
-
-
diff --git a/regress/usr.bin/xlint/test-12.c.exp b/regress/usr.bin/xlint/test-12.c.exp
deleted file mode 100644
index 745d6bb836e..00000000000
--- a/regress/usr.bin/xlint/test-12.c.exp
+++ /dev/null
@@ -1,2 +0,0 @@
-test-12.c:16: warning: assignment in conditional context
-Lint pass2:
diff --git a/regress/usr.bin/xlint/test-13.c b/regress/usr.bin/xlint/test-13.c
deleted file mode 100644
index 13e696178a7..00000000000
--- a/regress/usr.bin/xlint/test-13.c
+++ /dev/null
@@ -1,29 +0,0 @@
-/* $OpenBSD: test-13.c,v 1.1 2005/12/10 19:16:56 cloder Exp $ */
-
-/*
- * Placed in the public domain by Chad Loder <cloder@openbsd.org>.
- *
- * Test lint warnings regarding suspicious sizeof use.
- */
-
-typedef struct bar {
- int a;
-} bar_t;
-
-/* ARGSUSED */
-int
-main(int argc, char *argv[])
-{
- bar_t bars[10];
- unsigned int a;
-
- a = sizeof(argc + 1); /* warn */
- a = sizeof(1); /* warn */
- a = sizeof(bars[1]); /* ok */
- a = sizeof(bar_t); /* ok */
-
- a++;
- return 0;
-}
-
-
diff --git a/regress/usr.bin/xlint/test-13.c.exp b/regress/usr.bin/xlint/test-13.c.exp
deleted file mode 100644
index da14b62e0fb..00000000000
--- a/regress/usr.bin/xlint/test-13.c.exp
+++ /dev/null
@@ -1,3 +0,0 @@
-test-13.c:20: warning: suspicious operator for sizeof: +
-test-13.c:21: warning: suspicious operator for sizeof: CON
-Lint pass2:
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;
-}
-
-
diff --git a/regress/usr.bin/xlint/test-14.c.exp b/regress/usr.bin/xlint/test-14.c.exp
deleted file mode 100644
index 42be998e9fd..00000000000
--- a/regress/usr.bin/xlint/test-14.c.exp
+++ /dev/null
@@ -1,4 +0,0 @@
-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:
diff --git a/regress/usr.bin/xlint/test-15.c b/regress/usr.bin/xlint/test-15.c
deleted file mode 100644
index 7bc6a5d0d40..00000000000
--- a/regress/usr.bin/xlint/test-15.c
+++ /dev/null
@@ -1,49 +0,0 @@
-/* $OpenBSD: test-15.c,v 1.2 2005/12/17 20:05:49 cloder Exp $ */
-
-/*
- * Placed in the public domain by Chad Loder <cloder@openbsd.org>.
- *
- * Test lint dealing with division by zero.
- */
-
-/* ARGSUSED */
-void dbzd(double d) { }
-/* ARGSUSED */
-void dbzf(float f) { }
-/* ARGSUSED */
-void dbzi(int i) { }
-/* ARGSUSED */
-void dbzl(long L) { }
-
-/*ARGSUSED*/
-int
-main(int argc, char* argv[])
-{
- double d;
- long L;
- int i;
- float f;
-
- i = 1 / 0;
- f = 1.0f / 0.0f;
- d = 1.0 / 0.0;
- L = 1L / 0L;
-
- dbzd(1.0 / 0.0);
- dbzf(1.0f / 0.0f);
- dbzi(1 / 0);
- dbzl(1L / 0L);
-
- i = 1 % 0;
- L = 1L % 0L;
-
- i++;
- f++;
- d++;
- L++;
-
- return 0;
-}
-
-
-
diff --git a/regress/usr.bin/xlint/test-15.c.exp b/regress/usr.bin/xlint/test-15.c.exp
deleted file mode 100644
index 5413214998f..00000000000
--- a/regress/usr.bin/xlint/test-15.c.exp
+++ /dev/null
@@ -1,11 +0,0 @@
-test-15.c:27: warning: division by 0
-test-15.c:28: warning: division by 0
-test-15.c:29: warning: division by 0
-test-15.c:30: warning: division by 0
-test-15.c:32: warning: division by 0
-test-15.c:33: warning: division by 0
-test-15.c:34: warning: division by 0
-test-15.c:35: warning: division by 0
-test-15.c:37: warning: modulus by 0
-test-15.c:38: warning: modulus by 0
-Lint pass2:
diff --git a/regress/usr.bin/xlint/test-16.c b/regress/usr.bin/xlint/test-16.c
deleted file mode 100644
index 3cedb209fb8..00000000000
--- a/regress/usr.bin/xlint/test-16.c
+++ /dev/null
@@ -1,22 +0,0 @@
- /* $OpenBSD: test-16.c,v 1.1 2006/03/20 05:06:37 cloder Exp $ */
-
-/*
- * Placed in the public domain by Chad Loder <cloder@openbsd.org>.
- *
- * Test lint dealing with cascaded ==
- */
-#include <sys/types.h>
-
-/* ARGSUSED */
-int
-main(int argc, char* argv[])
-{
- mode_t mode;
-
- mode = (mode_t)argc;
-
- if ((((mode) & 0170000) == 0100000) == 0)
- return 1;
-
- return 0;
-}
diff --git a/regress/usr.bin/xlint/test-16.c.exp b/regress/usr.bin/xlint/test-16.c.exp
deleted file mode 100644
index b591b702fb4..00000000000
--- a/regress/usr.bin/xlint/test-16.c.exp
+++ /dev/null
@@ -1 +0,0 @@
-Lint pass2:
diff --git a/regress/usr.bin/xlint/test-17.c b/regress/usr.bin/xlint/test-17.c
deleted file mode 100644
index 009e2b20519..00000000000
--- a/regress/usr.bin/xlint/test-17.c
+++ /dev/null
@@ -1,49 +0,0 @@
- /* $OpenBSD: test-17.c,v 1.3 2006/04/25 01:31:46 cloder Exp $ */
-
-/*
- * Placed in the public domain by Chad Loder <cloder@openbsd.org>.
- *
- * Test lint dealing with unreachable break statements.
- */
-
-/* ARGSUSED */
-int
-main(int argc, char* argv[])
-{
- int a = 0;
-
- switch (argc)
- {
- case 1:
- a = 1;
- return 1;
- break; /* should not warn */
- case 2:
- a = 2;
- while (a < 5) {
- a++;
- break;
- break; /* should warn */
- }
- break;
- case 3:
- switch (a) {
- case 0:
- break;
- }
- default:
- break;
- }
-
- while (argc < 5) {
- if (argc ) {
- return 1;
- break; /* should warn */
- }
-
- argc++;
- break;
- }
-
- return a;
-}
diff --git a/regress/usr.bin/xlint/test-17.c.exp b/regress/usr.bin/xlint/test-17.c.exp
deleted file mode 100644
index 69256c1a914..00000000000
--- a/regress/usr.bin/xlint/test-17.c.exp
+++ /dev/null
@@ -1,4 +0,0 @@
-test-17.c:26: warning: statement not reached
-test-17.c:34: warning: fallthrough on default statement
-test-17.c:41: warning: statement not reached
-Lint pass2:
diff --git a/regress/usr.bin/xlint/test-18.c b/regress/usr.bin/xlint/test-18.c
deleted file mode 100644
index 3610e4354ab..00000000000
--- a/regress/usr.bin/xlint/test-18.c
+++ /dev/null
@@ -1,23 +0,0 @@
- /* $OpenBSD: test-18.c,v 1.1 2006/04/20 04:03:05 cloder Exp $ */
-
-/*
- * Placed in the public domain by Chad Loder <cloder@openbsd.org>.
- *
- * Test lint dealing with LINTUSED comments.
- */
-
-/* LINTUSED */
-int g;
-
-int u;
-
-/* ARGSUSED */
-int
-main(int argc, char* argv[])
-{
- /* LINTUSED */
- int a, b;
- int c;
-
- return 0;
-}
diff --git a/regress/usr.bin/xlint/test-18.c.exp b/regress/usr.bin/xlint/test-18.c.exp
deleted file mode 100644
index 0035ce58b29..00000000000
--- a/regress/usr.bin/xlint/test-18.c.exp
+++ /dev/null
@@ -1,3 +0,0 @@
-test-18.c:20: warning: c unused in function main
-Lint pass2:
-test-18.c:12: u defined, but never used
diff --git a/regress/usr.bin/xlint/test-19.c b/regress/usr.bin/xlint/test-19.c
deleted file mode 100644
index e2a39d06f9b..00000000000
--- a/regress/usr.bin/xlint/test-19.c
+++ /dev/null
@@ -1,498 +0,0 @@
- /* $OpenBSD: test-19.c,v 1.3 2006/04/27 20:55:08 otto Exp $ */
-
-/*
- * Placed in the public domain by Chad Loder <cloder@openbsd.org>.
- *
- * Test lint dealing with type conversions.
- */
-#include <limits.h>
-
-void c1 (signed char c){ c++; }
-void uc1 (unsigned char uc) { uc++; }
-void s1 (short s) { s++; }
-void us1 (unsigned short us) { us++; }
-void i1 (int i) { i++; }
-void ui1 (unsigned int ui) { ui++; }
-void f1 (float f) { f++; }
-void l1 (long l) { l++; }
-void ul1 (unsigned long ul) { ul++; }
-void d1 (double d) { d++; }
-void ll1 (long long ll) { ll++; }
-void ull1 (unsigned long long ull) { ull++; }
-void ld1 (long double ld) { ld++; }
-
-/* ARGSUSED */
-int
-main(int argc, char* argv[])
-{
- signed char C = 1;
- unsigned char UC = 1;
- short S = 1;
- unsigned short US = 1;
- int I = 1;
- unsigned int UI = 1;
- long L = 1;
- unsigned long UL = 1;
- long long LL = 1;
- unsigned long long ULL = 1;
- float F = 1.0f;
- double D = 1.0;
- long double LD = 1.0L;
-
- /* test with variables */
- c1(C);
- c1(UC);
- c1(S);
- c1(US);
- c1(I);
- c1(UI);
- c1(L);
- c1(UL);
- c1(LL);
- c1(ULL);
- c1(F);
- c1(D);
- c1(LD);
-
- uc1(C);
- uc1(UC);
- uc1(S);
- uc1(US);
- uc1(I);
- uc1(UI);
- uc1(L);
- uc1(UL);
- uc1(LL);
- uc1(ULL);
- uc1(F);
- uc1(D);
- uc1(LD);
-
- s1(C);
- s1(UC);
- s1(S);
- s1(US);
- s1(I);
- s1(UI);
- s1(L);
- s1(UL);
- s1(LL);
- s1(ULL);
- s1(F);
- s1(D);
- s1(LD);
-
- us1(C);
- us1(UC);
- us1(S);
- us1(US);
- us1(I);
- us1(UI);
- us1(L);
- us1(UL);
- us1(LL);
- us1(ULL);
- us1(F);
- us1(D);
- us1(LD);
-
- i1(C);
- i1(UC);
- i1(S);
- i1(US);
- i1(I);
- i1(UI);
- i1(L);
- i1(UL);
- i1(LL);
- i1(ULL);
- i1(F);
- i1(D);
- i1(LD);
-
- ui1(C);
- ui1(UC);
- ui1(S);
- ui1(US);
- ui1(I);
- ui1(UI);
- ui1(L);
- ui1(UL);
- ui1(LL);
- ui1(ULL);
- ui1(F);
- ui1(D);
- ui1(LD);
-
- f1(C);
- f1(UC);
- f1(S);
- f1(US);
- f1(I);
- f1(UI);
- f1(L);
- f1(UL);
- f1(LL);
- f1(ULL);
- f1(F);
- f1(D);
- f1(LD);
-
- l1(C);
- l1(UC);
- l1(S);
- l1(US);
- l1(I);
- l1(UI);
- l1(L);
- l1(UL);
- l1(LL);
- l1(ULL);
- l1(F);
- l1(D);
- l1(LD);
-
- ul1(C);
- ul1(UC);
- ul1(S);
- ul1(US);
- ul1(I);
- ul1(UI);
- ul1(L);
- ul1(UL);
- ul1(LL);
- ul1(ULL);
- ul1(F);
- ul1(D);
- ul1(LD);
-
- d1(C);
- d1(UC);
- d1(S);
- d1(US);
- d1(I);
- d1(UI);
- d1(L);
- d1(UL);
- d1(LL);
- d1(ULL);
- d1(F);
- d1(D);
- d1(LD);
-
- ll1(C);
- ll1(UC);
- ll1(S);
- ll1(US);
- ll1(I);
- ll1(UI);
- ll1(L);
- ll1(UL);
- ll1(LL);
- ll1(ULL);
- ll1(F);
- ll1(D);
- ll1(LD);
-
- ull1(C);
- ull1(UC);
- ull1(S);
- ull1(US);
- ull1(I);
- ull1(UI);
- ull1(L);
- ull1(UL);
- ull1(LL);
- ull1(ULL);
- ull1(F);
- ull1(D);
- ull1(LD);
-
- ld1(C);
- ld1(UC);
- ld1(S);
- ld1(US);
- ld1(I);
- ld1(UI);
- ld1(L);
- ld1(UL);
- ld1(LL);
- ld1(ULL);
- ld1(F);
- ld1(D);
- ld1(LD);
-
-
- c1(-1);
- c1(0);
- c1(1);
-
- uc1(-1);
- uc1(0);
- uc1(1);
-
- s1(-1);
- s1(0);
- s1(1);
-
- us1(-1);
- us1(0);
- us1(1);
-
- i1(-1);
- i1(0);
- i1(1);
-
- ui1(-1);
- ui1(0);
- ui1(1);
-
- f1(-1);
- f1(0);
- f1(1);
-
- l1(-1);
- l1(0);
- l1(1);
-
- ul1(-1);
- ul1(0);
- ul1(1);
-
- d1(-1);
- d1(0);
- d1(1);
-
- ll1(-1);
- ll1(0);
- ll1(1);
-
- ull1(-1);
- ull1(0);
- ull1(1);
-
- ld1(-1);
- ld1(0);
- ld1(1);
-
- /* now test with long constants */
- c1(-1L);
- c1(0L);
- c1(1L);
-
- uc1(-1L);
- uc1(0L);
- uc1(1L);
-
- s1(-1L);
- s1(0L);
- s1(1L);
-
- us1(-1L);
- us1(0L);
- us1(1L);
-
- i1(-1L);
- i1(0L);
- i1(1L);
-
- ui1(-1L);
- ui1(0L);
- ui1(1L);
-
- f1(-1L);
- f1(0L);
- f1(1L);
-
- l1(-1L);
- l1(0L);
- l1(1L);
-
- ul1(-1L);
- ul1(0L);
- ul1(1L);
-
- d1(-1L);
- d1(0L);
- d1(1L);
-
- ll1(-1L);
- ll1(0L);
- ll1(1L);
-
- ull1(-1L);
- ull1(0L);
- ull1(1L);
-
- ld1(-1L);
- ld1(0L);
- ld1(1L);
-
- /* now test with float constants */
- c1(-1.0f);
- c1(0.0f);
- c1(1.0f);
-
- uc1(-1.0f);
- uc1(0.0f);
- uc1(1.0f);
-
- s1(-1.0f);
- s1(0.0f);
- s1(1.0f);
-
- us1(-1.0f);
- us1(0.0f);
- us1(1.0f);
-
- i1(-1.0f);
- i1(0.0f);
- i1(1.0f);
-
- ui1(-1.0f);
- ui1(0.0f);
- ui1(1.0f);
-
- f1(-1.0f);
- f1(0.0f);
- f1(1.0f);
-
- l1(-1.0f);
- l1(0.0f);
- l1(1.0f);
-
- ul1(-1.0f);
- ul1(0.0f);
- ul1(1.0f);
-
- d1(-1.0f);
- d1(0.0f);
- d1(1.0f);
-
- ll1(-1.0f);
- ll1(0.0f);
- ll1(1.0f);
-
- ull1(-1.0f);
- ull1(0.0f);
- ull1(1.0f);
-
- ld1(-1.0f);
- ld1(0.0f);
- ld1(1.0f);
-
- /* now test with double constants */
- c1(-1.0);
- c1(0.0);
- c1(1.0);
-
- uc1(-1.0);
- uc1(0.0);
- uc1(1.0);
-
- s1(-1.0);
- s1(0.0);
- s1(1.0);
-
- us1(-1.0);
- us1(0.0);
- us1(1.0);
-
- i1(-1.0);
- i1(0.0);
- i1(1.0);
-
- ui1(-1.0);
- ui1(0.0);
- ui1(1.0);
-
- f1(-1.0);
- f1(0.0);
- f1(1.0);
-
- l1(-1.0);
- l1(0.0);
- l1(1.0);
-
- ul1(-1.0);
- ul1(0.0);
- ul1(1.0);
-
- d1(-1.0);
- d1(0.0);
- d1(1.0);
-
- ll1(-1.0);
- ll1(0.0);
- ll1(1.0);
-
- ull1(-1.0);
- ull1(0.0);
- ull1(1.0);
-
- ld1(-1.0);
- ld1(0.0);
- ld1(1.0);
-
- /* now test with long double constants */
- c1(-1.0L);
- c1(0.0L);
- c1(1.0L);
-
- uc1(-1.0L);
- uc1(0.0L);
- uc1(1.0L);
-
- s1(-1.0L);
- s1(0.0L);
- s1(1.0L);
-
- us1(-1.0L);
- us1(0.0L);
- us1(1.0L);
-
- i1(-1.0L);
- i1(0.0L);
- i1(1.0L);
-
- ui1(-1.0L);
- ui1(0.0L);
- ui1(1.0L);
-
- f1(-1.0L);
- f1(0.0L);
- f1(1.0L);
-
- l1(-1.0L);
- l1(0.0L);
- l1(1.0L);
-
- ul1(-1.0L);
- ul1(0.0L);
- ul1(1.0L);
-
- d1(-1.0L);
- d1(0.0L);
- d1(1.0L);
-
- ll1(-1.0L);
- ll1(0.0L);
- ll1(1.0L);
-
- ull1(-1.0L);
- ull1(0.0L);
- ull1(1.0L);
-
- ld1(-1.0L);
- ld1(0.0L);
- ld1(1.0L);
-
- ul1(4 * I);
-
- return 0;
-}
-
-
-
-
-
diff --git a/regress/usr.bin/xlint/test-19.c.exp b/regress/usr.bin/xlint/test-19.c.exp
deleted file mode 100644
index d54afc70dc0..00000000000
--- a/regress/usr.bin/xlint/test-19.c.exp
+++ /dev/null
@@ -1,117 +0,0 @@
-test-19.c:44: warning: c1() arg #1: converted from 'unsigned char' to 'signed char'
-test-19.c:45: warning: c1() arg #1: converted from 'short' to 'signed char'
-test-19.c:46: warning: c1() arg #1: converted from 'unsigned short' to 'signed char'
-test-19.c:47: warning: c1() arg #1: converted from 'int' to 'signed char'
-test-19.c:48: warning: c1() arg #1: converted from 'unsigned int' to 'signed char'
-test-19.c:49: warning: c1() arg #1: converted from 'long' to 'signed char'
-test-19.c:50: warning: c1() arg #1: converted from 'unsigned long' to 'signed char'
-test-19.c:51: warning: c1() arg #1: converted from 'long long' to 'signed char'
-test-19.c:52: warning: c1() arg #1: converted from 'unsigned long long' to 'signed char'
-test-19.c:53: warning: c1() arg #1: converted from 'float' to 'signed char'
-test-19.c:54: warning: c1() arg #1: converted from 'double' to 'signed char'
-test-19.c:55: warning: c1() arg #1: converted from 'long double' to 'signed char'
-test-19.c:57: warning: uc1() arg #1: converted from 'signed char' to 'unsigned char'
-test-19.c:59: warning: uc1() arg #1: converted from 'short' to 'unsigned char'
-test-19.c:60: warning: uc1() arg #1: converted from 'unsigned short' to 'unsigned char'
-test-19.c:61: warning: uc1() arg #1: converted from 'int' to 'unsigned char'
-test-19.c:62: warning: uc1() arg #1: converted from 'unsigned int' to 'unsigned char'
-test-19.c:63: warning: uc1() arg #1: converted from 'long' to 'unsigned char'
-test-19.c:64: warning: uc1() arg #1: converted from 'unsigned long' to 'unsigned char'
-test-19.c:65: warning: uc1() arg #1: converted from 'long long' to 'unsigned char'
-test-19.c:66: warning: uc1() arg #1: converted from 'unsigned long long' to 'unsigned char'
-test-19.c:67: warning: uc1() arg #1: converted from 'float' to 'unsigned char'
-test-19.c:68: warning: uc1() arg #1: converted from 'double' to 'unsigned char'
-test-19.c:69: warning: uc1() arg #1: converted from 'long double' to 'unsigned char'
-test-19.c:74: warning: s1() arg #1: converted from 'unsigned short' to 'short'
-test-19.c:75: warning: s1() arg #1: converted from 'int' to 'short'
-test-19.c:76: warning: s1() arg #1: converted from 'unsigned int' to 'short'
-test-19.c:77: warning: s1() arg #1: converted from 'long' to 'short'
-test-19.c:78: warning: s1() arg #1: converted from 'unsigned long' to 'short'
-test-19.c:79: warning: s1() arg #1: converted from 'long long' to 'short'
-test-19.c:80: warning: s1() arg #1: converted from 'unsigned long long' to 'short'
-test-19.c:81: warning: s1() arg #1: converted from 'float' to 'short'
-test-19.c:82: warning: s1() arg #1: converted from 'double' to 'short'
-test-19.c:83: warning: s1() arg #1: converted from 'long double' to 'short'
-test-19.c:85: warning: us1() arg #1: converted from 'signed char' to 'unsigned short'
-test-19.c:87: warning: us1() arg #1: converted from 'short' to 'unsigned short'
-test-19.c:89: warning: us1() arg #1: converted from 'int' to 'unsigned short'
-test-19.c:90: warning: us1() arg #1: converted from 'unsigned int' to 'unsigned short'
-test-19.c:91: warning: us1() arg #1: converted from 'long' to 'unsigned short'
-test-19.c:92: warning: us1() arg #1: converted from 'unsigned long' to 'unsigned short'
-test-19.c:93: warning: us1() arg #1: converted from 'long long' to 'unsigned short'
-test-19.c:94: warning: us1() arg #1: converted from 'unsigned long long' to 'unsigned short'
-test-19.c:95: warning: us1() arg #1: converted from 'float' to 'unsigned short'
-test-19.c:96: warning: us1() arg #1: converted from 'double' to 'unsigned short'
-test-19.c:97: warning: us1() arg #1: converted from 'long double' to 'unsigned short'
-test-19.c:104: warning: i1() arg #1: converted from 'unsigned int' to 'int'
-test-19.c:105: warning: i1() arg #1: converted from 'long' to 'int'
-test-19.c:106: warning: i1() arg #1: converted from 'unsigned long' to 'int'
-test-19.c:107: warning: i1() arg #1: converted from 'long long' to 'int'
-test-19.c:108: warning: i1() arg #1: converted from 'unsigned long long' to 'int'
-test-19.c:109: warning: i1() arg #1: converted from 'float' to 'int'
-test-19.c:110: warning: i1() arg #1: converted from 'double' to 'int'
-test-19.c:111: warning: i1() arg #1: converted from 'long double' to 'int'
-test-19.c:113: warning: ui1() arg #1: converted from 'signed char' to 'unsigned int'
-test-19.c:115: warning: ui1() arg #1: converted from 'short' to 'unsigned int'
-test-19.c:117: warning: ui1() arg #1: converted from 'int' to 'unsigned int'
-test-19.c:119: warning: ui1() arg #1: converted from 'long' to 'unsigned int'
-test-19.c:120: warning: ui1() arg #1: converted from 'unsigned long' to 'unsigned int'
-test-19.c:121: warning: ui1() arg #1: converted from 'long long' to 'unsigned int'
-test-19.c:122: warning: ui1() arg #1: converted from 'unsigned long long' to 'unsigned int'
-test-19.c:123: warning: ui1() arg #1: converted from 'float' to 'unsigned int'
-test-19.c:124: warning: ui1() arg #1: converted from 'double' to 'unsigned int'
-test-19.c:125: warning: ui1() arg #1: converted from 'long double' to 'unsigned int'
-test-19.c:148: warning: l1() arg #1: converted from 'unsigned long' to 'long'
-test-19.c:149: warning: l1() arg #1: converted from 'long long' to 'long'
-test-19.c:150: warning: l1() arg #1: converted from 'unsigned long long' to 'long'
-test-19.c:151: warning: l1() arg #1: converted from 'float' to 'long'
-test-19.c:152: warning: l1() arg #1: converted from 'double' to 'long'
-test-19.c:153: warning: l1() arg #1: converted from 'long double' to 'long'
-test-19.c:155: warning: ul1() arg #1: converted from 'signed char' to 'unsigned long'
-test-19.c:157: warning: ul1() arg #1: converted from 'short' to 'unsigned long'
-test-19.c:159: warning: ul1() arg #1: converted from 'int' to 'unsigned long'
-test-19.c:161: warning: ul1() arg #1: converted from 'long' to 'unsigned long'
-test-19.c:163: warning: ul1() arg #1: converted from 'long long' to 'unsigned long'
-test-19.c:164: warning: ul1() arg #1: converted from 'unsigned long long' to 'unsigned long'
-test-19.c:165: warning: ul1() arg #1: converted from 'float' to 'unsigned long'
-test-19.c:166: warning: ul1() arg #1: converted from 'double' to 'unsigned long'
-test-19.c:167: warning: ul1() arg #1: converted from 'long double' to 'unsigned long'
-test-19.c:192: warning: ll1() arg #1: converted from 'unsigned long long' to 'long long'
-test-19.c:193: warning: ll1() arg #1: converted from 'float' to 'long long'
-test-19.c:194: warning: ll1() arg #1: converted from 'double' to 'long long'
-test-19.c:195: warning: ll1() arg #1: converted from 'long double' to 'long long'
-test-19.c:197: warning: ull1() arg #1: converted from 'signed char' to 'unsigned long long'
-test-19.c:199: warning: ull1() arg #1: converted from 'short' to 'unsigned long long'
-test-19.c:201: warning: ull1() arg #1: converted from 'int' to 'unsigned long long'
-test-19.c:203: warning: ull1() arg #1: converted from 'long' to 'unsigned long long'
-test-19.c:205: warning: ull1() arg #1: converted from 'long long' to 'unsigned long long'
-test-19.c:207: warning: ull1() arg #1: converted from 'float' to 'unsigned long long'
-test-19.c:208: warning: ull1() arg #1: converted from 'double' to 'unsigned long long'
-test-19.c:209: warning: ull1() arg #1: converted from 'long double' to 'unsigned long long'
-test-19.c:230: warning: uc1() arg #1: conversion of negative constant to unsigned type
-test-19.c:238: warning: us1() arg #1: conversion of negative constant to unsigned type
-test-19.c:246: warning: ui1() arg #1: conversion of negative constant to unsigned type
-test-19.c:258: warning: ul1() arg #1: conversion of negative constant to unsigned type
-test-19.c:270: warning: ull1() arg #1: conversion of negative constant to unsigned type
-test-19.c:283: warning: uc1() arg #1: conversion of negative constant to unsigned type
-test-19.c:291: warning: us1() arg #1: conversion of negative constant to unsigned type
-test-19.c:299: warning: ui1() arg #1: conversion of negative constant to unsigned type
-test-19.c:311: warning: ul1() arg #1: conversion of negative constant to unsigned type
-test-19.c:323: warning: ull1() arg #1: conversion of negative constant to unsigned type
-test-19.c:336: warning: uc1() arg #1: conversion of 'float' to 'unsigned char' is out of range
-test-19.c:344: warning: us1() arg #1: conversion of 'float' to 'unsigned short' is out of range
-test-19.c:352: warning: ui1() arg #1: conversion of 'float' to 'unsigned int' is out of range
-test-19.c:364: warning: ul1() arg #1: conversion of 'float' to 'unsigned long' is out of range
-test-19.c:376: warning: ull1() arg #1: conversion of 'float' to 'unsigned long long' is out of range
-test-19.c:389: warning: uc1() arg #1: conversion of 'double' to 'unsigned char' is out of range
-test-19.c:397: warning: us1() arg #1: conversion of 'double' to 'unsigned short' is out of range
-test-19.c:405: warning: ui1() arg #1: conversion of 'double' to 'unsigned int' is out of range
-test-19.c:417: warning: ul1() arg #1: conversion of 'double' to 'unsigned long' is out of range
-test-19.c:429: warning: ull1() arg #1: conversion of 'double' to 'unsigned long long' is out of range
-test-19.c:442: warning: uc1() arg #1: conversion of 'long double' to 'unsigned char' is out of range
-test-19.c:450: warning: us1() arg #1: conversion of 'long double' to 'unsigned short' is out of range
-test-19.c:458: warning: ui1() arg #1: conversion of 'long double' to 'unsigned int' is out of range
-test-19.c:470: warning: ul1() arg #1: conversion of 'long double' to 'unsigned long' is out of range
-test-19.c:482: warning: ull1() arg #1: conversion of 'long double' to 'unsigned long long' is out of range
-test-19.c:490: warning: ul1() arg #1: converted from 'int' to 'unsigned long'
-Lint pass2:
diff --git a/regress/usr.bin/xlint/test-2.c b/regress/usr.bin/xlint/test-2.c
deleted file mode 100644
index 498832cea7f..00000000000
--- a/regress/usr.bin/xlint/test-2.c
+++ /dev/null
@@ -1,38 +0,0 @@
-/* $OpenBSD: test-2.c,v 1.1 2005/11/23 00:13:56 cloder Exp $ */
-
-/*
- * Placed in the public domain by Chad Loder <cloder@openbsd.org>.
- *
- * Test detection of right shift by too many bits.
- */
-
-/* ARGSUSED */
-int
-main(int argc, char* argv[])
-{
- unsigned char c, d;
-
- c = 'a';
- d = c << 7; /* ok */
- d = c >> 7; /* ok */
- c <<= 7; /* ok */
- c >>= 7; /* ok */
-
- d = c << 8; /* ok */
- d = c >> 8; /* right-shifting an 8-bit quantity by 8 bits */
- c <<= 8; /* ok */
- c >>= 8; /* right-shifting an 8-bit quantity by 8 bits */
-
- d = c << 9; /* ok */
- d = c >> 9; /* right-shifting an 8-bit quantity by 9 bits */
- c <<= 9; /* ok */
- c >>= 9; /* right-shifting/assign an 8-bit quantity by 9 bits */
-
- d = c << 10; /* ok */
- d = c >> 10; /* right-shifting an 8-bit quantity by 10 bits */
- c <<= 10; /* ok */
- c >>= 10; /* right-shifting/assign an 8-bit quantity by 10 bits */
-
- d++;
- return 0;
-}
diff --git a/regress/usr.bin/xlint/test-2.c.exp b/regress/usr.bin/xlint/test-2.c.exp
deleted file mode 100644
index 43eb4b1e307..00000000000
--- a/regress/usr.bin/xlint/test-2.c.exp
+++ /dev/null
@@ -1,15 +0,0 @@
-test-2.c:16: warning: converted from 'int' to 'unsigned char'
-test-2.c:17: warning: converted from 'int' to 'unsigned char'
-test-2.c:21: warning: converted from 'int' to 'unsigned char'
-test-2.c:22: warning: right shift of 8-bit quantity by 8 bits
-test-2.c:22: warning: converted from 'int' to 'unsigned char'
-test-2.c:24: warning: right shift of 8-bit quantity by 8 bits
-test-2.c:26: warning: converted from 'int' to 'unsigned char'
-test-2.c:27: warning: right shift of 8-bit quantity by 9 bits
-test-2.c:27: warning: converted from 'int' to 'unsigned char'
-test-2.c:29: warning: right shift of 8-bit quantity by 9 bits
-test-2.c:31: warning: converted from 'int' to 'unsigned char'
-test-2.c:32: warning: right shift of 8-bit quantity by 10 bits
-test-2.c:32: warning: converted from 'int' to 'unsigned char'
-test-2.c:34: warning: right shift of 8-bit quantity by 10 bits
-Lint pass2:
diff --git a/regress/usr.bin/xlint/test-20.c b/regress/usr.bin/xlint/test-20.c
deleted file mode 100644
index cb3fd7d3f99..00000000000
--- a/regress/usr.bin/xlint/test-20.c
+++ /dev/null
@@ -1,61 +0,0 @@
-/* $OpenBSD: test-20.c,v 1.2 2006/05/03 18:23:17 otto Exp $ */
-
-/*
- * Placed in the public domain by Otto Moerbeek <otto@drijf.net>.
- *
- * Test the 'expression has null effect warning'
- */
-
-#include <assert.h>
-
-int f(int x,...)
-{
- int p;
- char *q = 0;
- int i = (1,33), j = (p=0,p), k = (i+j, i=0);
-
- int a = i < 1 ? j : i, b = 2, t;
-
- t = a, a = b, b = t;
-
- 1 + b, t = a, a = b, b = t, a + 1, b - 1;
-
- a + t, t = b;
-
- a + 1;
-
- b + 1, t = t;
-
- t = t, b + 1;
-
- 1 + a;
-
- 1,2,3,4,5;
-
- a = (1,(b=2),3,4,5);
-
- if (a + 1, b)
- a = 2;
-
- a ? b=1 : t;
-
- a + 1, b = 1, t + 1;
-
- a = (1,b,f(a,(a,b),t));
-
- *q = 0, *q = 0, *q = 0, *q = 0, *q = 0;
-
- *q + 0, *q = 0, *q = 0, *q = 0, *q = 0;
-
- q ? q = 0 : q++;
-
- assert(p == j);
-
- 0;
-
- (void)0;
-
- j = j < 0 ? j + 1 : j + 2;
-
- return k + k, x;
-}
diff --git a/regress/usr.bin/xlint/test-20.c.exp b/regress/usr.bin/xlint/test-20.c.exp
deleted file mode 100644
index cc6a03f14eb..00000000000
--- a/regress/usr.bin/xlint/test-20.c.exp
+++ /dev/null
@@ -1,21 +0,0 @@
-test-20.c:15: warning: expression has null effect
-test-20.c:15: warning: expression has null effect
-test-20.c:21: warning: expression has null effect
-test-20.c:23: warning: expression has null effect
-test-20.c:25: warning: expression has null effect
-test-20.c:27: warning: expression has null effect
-test-20.c:31: warning: expression has null effect
-test-20.c:33: warning: expression has null effect
-test-20.c:33: warning: expression has null effect
-test-20.c:33: warning: expression has null effect
-test-20.c:33: warning: expression has null effect
-test-20.c:35: warning: expression has null effect
-test-20.c:37: warning: expression has null effect
-test-20.c:42: warning: expression has null effect
-test-20.c:44: warning: expression has null effect
-test-20.c:44: warning: expression has null effect
-test-20.c:44: warning: expression has null effect
-test-20.c:48: warning: expression has null effect
-test-20.c:54: warning: expression has null effect
-test-20.c:60: warning: expression has null effect
-Lint pass2:
diff --git a/regress/usr.bin/xlint/test-21.c b/regress/usr.bin/xlint/test-21.c
deleted file mode 100644
index d995da4535b..00000000000
--- a/regress/usr.bin/xlint/test-21.c
+++ /dev/null
@@ -1,22 +0,0 @@
- /* $OpenBSD: test-21.c,v 1.2 2006/05/05 06:48:20 otto Exp $*/
-
-/*
- * Placed in the public domain by Chad Loder <cloder@openbsd.org>.
- *
- * Regression test lint1 crash on function prototypes having functions
- * as arguments.
- */
-struct foo
-{
- int a;
-};
-
-int bar(int, unsigned int(int, const struct foo *, int));
-int baz(int *(void *));
-
-/* ARGSUSED */
-int
-main(int argc, char* argv[])
-{
- return 0;
-}
diff --git a/regress/usr.bin/xlint/test-21.c.exp b/regress/usr.bin/xlint/test-21.c.exp
deleted file mode 100644
index ab50994ac61..00000000000
--- a/regress/usr.bin/xlint/test-21.c.exp
+++ /dev/null
@@ -1,3 +0,0 @@
-Lint pass2:
-test-21.c:14: bar declared, but never used or defined
-test-21.c:15: baz declared, but never used or defined
diff --git a/regress/usr.bin/xlint/test-22.c b/regress/usr.bin/xlint/test-22.c
deleted file mode 100644
index c9a137ebb7c..00000000000
--- a/regress/usr.bin/xlint/test-22.c
+++ /dev/null
@@ -1,17 +0,0 @@
- /* $OpenBSD: test-22.c,v 1.1 2006/05/03 18:45:25 cloder Exp $ */
-
-/*
- * Placed in the public domain by Chad Loder <cloder@openbsd.org>.
- *
- * Regression test for lint1 crash on expressions of the type:
- *
- * char *foo = { "literal" }
- */
-
-/* ARGSUSED */
-int
-main(int argc, char* argv[])
-{
- const char *foo = { "bar" };
- return 0;
-}
diff --git a/regress/usr.bin/xlint/test-22.c.exp b/regress/usr.bin/xlint/test-22.c.exp
deleted file mode 100644
index 03044059041..00000000000
--- a/regress/usr.bin/xlint/test-22.c.exp
+++ /dev/null
@@ -1,2 +0,0 @@
-test-22.c:15: warning: foo set but not used in function main
-Lint pass2:
diff --git a/regress/usr.bin/xlint/test-23.c b/regress/usr.bin/xlint/test-23.c
deleted file mode 100644
index ae88f440f79..00000000000
--- a/regress/usr.bin/xlint/test-23.c
+++ /dev/null
@@ -1,65 +0,0 @@
-/* $OpenBSD: test-23.c,v 1.1 2006/05/05 20:02:11 otto Exp $ */
-
-/*
- * Placed in the public domain by Otto Moerbeek <otto@drijf.net>.
- *
- * Test pointer casts
- */
-
-struct foo {
- int a;
-};
-
-void
-f(void)
-{
- void *vp = 0;
- char *cp = 0;
- signed char *scp = 0;
- unsigned char *ucp = 0;
- short *sp = 0;
- struct foo *fp = 0;
-
- vp = (void *)vp;
- vp = (void *)cp;
- vp = (void *)scp;
- vp = (void *)ucp;
- vp = (void *)sp;
- vp = (void *)fp;
-
- cp = (char *)vp;
- cp = (char *)cp;
- cp = (char *)ucp;
- cp = (char *)scp;
- cp = (char *)sp;
- cp = (char *)fp;
-
- scp = (signed char *)vp;
- scp = (signed char *)cp;
- scp = (signed char *)ucp;
- scp = (signed char *)scp;
- scp = (signed char *)sp;
- scp = (signed char *)fp;
-
- ucp = (unsigned char *)vp;
- ucp = (unsigned char *)cp;
- ucp = (unsigned char *)ucp;
- ucp = (unsigned char *)scp;
- ucp = (unsigned char *)sp;
- ucp = (unsigned char *)fp;
-
- sp = (short *)vp;
- sp = (short *)cp;
- sp = (short *)ucp;
- sp = (short *)scp;
- sp = (short *)sp;
- sp = (short *)fp;
-
- fp = (struct foo *)vp;
- fp = (struct foo *)cp;
- fp = (struct foo *)ucp;
- fp = (struct foo *)scp;
- fp = (struct foo *)sp;
- fp = (struct foo *)fp;
-
-}
diff --git a/regress/usr.bin/xlint/test-23.c.exp b/regress/usr.bin/xlint/test-23.c.exp
deleted file mode 100644
index 9be36a5cd25..00000000000
--- a/regress/usr.bin/xlint/test-23.c.exp
+++ /dev/null
@@ -1,9 +0,0 @@
-test-23.c:52: warning: possible pointer alignment problem
-test-23.c:53: warning: possible pointer alignment problem
-test-23.c:54: warning: possible pointer alignment problem
-test-23.c:59: warning: possible pointer alignment problem
-test-23.c:60: warning: possible pointer alignment problem
-test-23.c:61: warning: possible pointer alignment problem
-test-23.c:62: warning: possible pointer alignment problem
-Lint pass2:
-test-23.c:14: f defined, but never used
diff --git a/regress/usr.bin/xlint/test-24.c b/regress/usr.bin/xlint/test-24.c
deleted file mode 100644
index 037de233432..00000000000
--- a/regress/usr.bin/xlint/test-24.c
+++ /dev/null
@@ -1,124 +0,0 @@
-/* $OpenBSD: test-24.c,v 1.1 2010/07/25 23:00:05 guenther Exp $ */
-
-/*
- * Placed in the public domain by Philip Guenther <guenther@openbsd.org>.
- *
- * Test _Bool handling.
- * Based in part on test-19.c, by Chad Loder <cloder@openbsd.org>.
- */
-
-void
-f(void)
-{
- _Bool b1;
- const _Bool b2 = 1;
- _Bool const b3 = 0;
- float fl = 4.3f;
-
- _Bool *bp = &b1;
-
- *bp = 3;
- if (b1 > 1 ||
- b2 < 0 ||
- *bp > 1 ||
- *bp < 0)
- {
- *bp = 0;
- }
-
- b1 = fl;
-}
-
-void b1 (_Bool b){ b++; }
-void c1 (signed char c){ c++; }
-void uc1 (unsigned char uc) { uc++; }
-void s1 (short s) { s++; }
-void us1 (unsigned short us) { us++; }
-void i1 (int i) { i++; }
-void ui1 (unsigned int ui) { ui++; }
-void f1 (float f) { f++; }
-void l1 (long l) { l++; }
-void ul1 (unsigned long ul) { ul++; }
-void d1 (double d) { d++; }
-void ll1 (long long ll) { ll++; }
-void ull1 (unsigned long long ull) { ull++; }
-void ld1 (long double ld) { ld++; }
-
-/* ARGSUSED */
-int
-main(int argc, char* argv[])
-{
- _Bool B = 1;
- signed char C = 1;
- unsigned char UC = 1;
- short S = 1;
- unsigned short US = 1;
- int I = 1;
- unsigned int UI = 1;
- long L = 1;
- unsigned long UL = 1;
- long long LL = 1;
- unsigned long long ULL = 1;
- float F = 1.0f;
- double D = 1.0;
- long double LD = 1.0L;
-
- f();
-
- /* test with variables */
- b1(B);
- b1(C);
- b1(UC);
- b1(S);
- b1(US);
- b1(I);
- b1(UI);
- b1(L);
- b1(UL);
- b1(LL);
- b1(ULL);
- b1(F);
- b1(D);
- b1(LD);
-
- c1(B);
- uc1(B);
- s1(B);
- us1(B);
- i1(B);
- ui1(B);
- f1(B);
- l1(B);
- ul1(B);
- d1(B);
- ll1(B);
- ull1(B);
- ld1(B);
-
- /* now test with int constants */
- b1(-1);
- b1(0);
- b1(1);
-
- /* now test with long constants */
- b1(-1L);
- b1(0L);
- b1(1L);
-
- /* now test with float constants */
- b1(-1.0f);
- b1(0.0f);
- b1(1.0f);
-
- /* now test with double constants */
- b1(-1.0);
- b1(0.0);
- b1(1.0);
-
- /* now test with long double constants */
- b1(-1.0L);
- b1(0.0L);
- b1(1.0L);
-
- return 0;
-}
diff --git a/regress/usr.bin/xlint/test-24.c.exp b/regress/usr.bin/xlint/test-24.c.exp
deleted file mode 100644
index 5877999487d..00000000000
--- a/regress/usr.bin/xlint/test-24.c.exp
+++ /dev/null
@@ -1,22 +0,0 @@
-test-24.c:22: warning: comparison of _Bool with 0, op <
-test-24.c:24: warning: comparison of _Bool with 0, op <
-test-24.c:29: warning: converted from 'float' to '_Bool'
-test-24.c:15: warning: b3 set but not used in function f
-test-24.c:70: warning: b1() arg #1: converted from 'signed char' to '_Bool'
-test-24.c:71: warning: b1() arg #1: converted from 'unsigned char' to '_Bool'
-test-24.c:72: warning: b1() arg #1: converted from 'short' to '_Bool'
-test-24.c:73: warning: b1() arg #1: converted from 'unsigned short' to '_Bool'
-test-24.c:75: warning: b1() arg #1: converted from 'unsigned int' to '_Bool'
-test-24.c:76: warning: b1() arg #1: converted from 'long' to '_Bool'
-test-24.c:77: warning: b1() arg #1: converted from 'unsigned long' to '_Bool'
-test-24.c:78: warning: b1() arg #1: converted from 'long long' to '_Bool'
-test-24.c:79: warning: b1() arg #1: converted from 'unsigned long long' to '_Bool'
-test-24.c:80: warning: b1() arg #1: converted from 'float' to '_Bool'
-test-24.c:81: warning: b1() arg #1: converted from 'double' to '_Bool'
-test-24.c:82: warning: b1() arg #1: converted from 'long double' to '_Bool'
-test-24.c:99: warning: b1() arg #1: conversion of negative constant to unsigned type
-test-24.c:104: warning: b1() arg #1: conversion of negative constant to unsigned type
-test-24.c:109: warning: b1() arg #1: conversion of 'float' to '_Bool' is out of range
-test-24.c:114: warning: b1() arg #1: conversion of 'double' to '_Bool' is out of range
-test-24.c:119: warning: b1() arg #1: conversion of 'long double' to '_Bool' is out of range
-Lint pass2:
diff --git a/regress/usr.bin/xlint/test-25.c b/regress/usr.bin/xlint/test-25.c
deleted file mode 100644
index 9a68fee9f6e..00000000000
--- a/regress/usr.bin/xlint/test-25.c
+++ /dev/null
@@ -1,266 +0,0 @@
-/* $OpenBSD: test-25.c,v 1.1 2010/07/25 23:00:05 guenther Exp $ */
-
-/*
- * Placed in the public domain by Philip Guenther <guenther@openbsd.org>.
- *
- * Test _Complex handling, based on test-19.c
- */
-
-#include <limits.h>
-#include <complex.h>
-
-int
-f(void)
-{
- float f1;
- double d1;
- long double l1;
-
- float _Complex fc1;
- _Complex float fc2;
-
- double _Complex dc1;
- _Complex double dc2;
-
- long double _Complex lc1;
- double long _Complex lc2;
- double _Complex long lc3;
- long _Complex double lc4;
- _Complex long double lc5;
- _Complex double long lc6;
-
- /* test type compatibility by mixing pointers */
- if (&fc1 == &fc2)
- return 0;
- if (&dc1 == &dc2)
- return 0;
- if (&fc1 == &dc1 || &dc1 == &lc1 || &lc1 == &fc1)
- return 1;
- if (&__real__ fc1 == &f1 || &__imag__ fc1 == &f1 ||
- &__real__ dc1 == &d1 || &__imag__ dc1 == &d1 ||
- &__real__ lc1 == &l1 || &__imag__ lc1 == &l1)
- return 1;
- return (&lc1 != &lc2 && &lc1 != &lc3 && &lc1 != &lc4 &&
- &lc1 != &lc5 && &lc1 != &lc6);
-}
-
-void b1 (_Bool b){ b++; }
-void c1 (signed char c){ c++; }
-void uc1 (unsigned char uc) { uc++; }
-void s1 (short s) { s++; }
-void us1 (unsigned short us) { us++; }
-void i1 (int i) { i++; }
-void ui1 (unsigned int ui) { ui++; }
-void f1 (float f) { f++; }
-void l1 (long l) { l++; }
-void ul1 (unsigned long ul) { ul++; }
-void d1 (double d) { d++; }
-void ll1 (long long ll) { ll++; }
-void ull1 (unsigned long long ull) { ull++; }
-void ld1 (long double ld) { ld++; }
-void fc1 (float _Complex f) { f++; }
-void dc1 (double _Complex d) { d++; }
-void ldc1 (long double _Complex ld) { ld++; }
-
-/* ARGSUSED */
-int
-main(int argc, char* argv[])
-{
- _Bool B = 1;
- signed char C = 1;
- unsigned char UC = 1;
- short S = 1;
- unsigned short US = 1;
- int II = 1;
- unsigned int UI = 1;
- long L = 1;
- unsigned long UL = 1;
- long long LL = 1;
- unsigned long long ULL = 1;
- float F = 1.0f;
- double D = 1.0;
- long double LD = 1.0L;
- float _Complex FC = 1.0f + I;
- double _Complex DC = 1.0 + I;
- long double _Complex LDC = 1.0L + I;
-
- f();
-
- /* test with variables */
- b1(FC);
- b1(DC);
- b1(LDC);
-
- c1(FC);
- c1(DC);
- c1(LDC);
-
- uc1(FC);
- uc1(DC);
- uc1(LDC);
-
- s1(FC);
- s1(DC);
- s1(LDC);
-
- us1(FC);
- us1(DC);
- us1(LDC);
-
- i1(FC);
- i1(DC);
- i1(LDC);
-
- ui1(FC);
- ui1(DC);
- ui1(LDC);
-
- f1(FC);
- f1(DC);
- f1(LDC);
-
- l1(FC);
- l1(DC);
- l1(LDC);
-
- ul1(FC);
- ul1(DC);
- ul1(LDC);
-
- d1(FC);
- d1(DC);
- d1(LDC);
-
- ll1(FC);
- ll1(DC);
- ll1(LDC);
-
- ull1(FC);
- ull1(DC);
- ull1(LDC);
-
- ld1(FC);
- ld1(DC);
- ld1(LDC);
-
- fc1(B);
- fc1(C);
- fc1(UC);
- fc1(S);
- fc1(US);
- fc1(II);
- fc1(UI);
- fc1(L);
- fc1(UL);
- fc1(LL);
- fc1(ULL);
- fc1(F);
- fc1(D);
- fc1(LD);
- fc1(FC);
- fc1(DC);
- fc1(LDC);
-
- dc1(B);
- dc1(C);
- dc1(UC);
- dc1(S);
- dc1(US);
- dc1(II);
- dc1(UI);
- dc1(L);
- dc1(UL);
- dc1(LL);
- dc1(ULL);
- dc1(F);
- dc1(D);
- dc1(LD);
- dc1(FC);
- dc1(DC);
- dc1(LDC);
-
- ldc1(B);
- ldc1(C);
- ldc1(UC);
- ldc1(S);
- ldc1(US);
- ldc1(II);
- ldc1(UI);
- ldc1(L);
- ldc1(UL);
- ldc1(LL);
- ldc1(ULL);
- ldc1(F);
- ldc1(D);
- ldc1(LD);
- ldc1(FC);
- ldc1(DC);
- ldc1(LDC);
-
- /* now test with int constants */
- fc1(-1);
- fc1(0);
- fc1(1);
-
- dc1(-1);
- dc1(0);
- dc1(1);
-
- ldc1(-1);
- ldc1(0);
- ldc1(1);
-
- /* now test with long constants */
- fc1(-1L);
- fc1(0L);
- fc1(1L);
-
- dc1(-1L);
- dc1(0L);
- dc1(1L);
-
- ldc1(-1L);
- ldc1(0L);
- ldc1(1L);
-
- /* now test with float constants */
- fc1(-1.0f);
- fc1(0.0f);
- fc1(1.0f);
-
- dc1(-1.0f);
- dc1(0.0f);
- dc1(1.0f);
-
- ldc1(-1.0f);
- ldc1(0.0f);
- ldc1(1.0f);
-
- /* now test with double constants */
- fc1(-1.0);
- fc1(0.0);
- fc1(1.0);
-
- dc1(-1.0);
- dc1(0.0);
- dc1(1.0);
-
- ldc1(-1.0);
- ldc1(0.0);
- ldc1(1.0);
-
- /* now test with long double constants */
- fc1(-1.0L);
- fc1(0.0L);
- fc1(1.0L);
-
- dc1(-1.0L);
- dc1(0.0L);
- dc1(1.0L);
-
- ldc1(-1.0L);
- ldc1(0.0L);
- ldc1(1.0L);
-
- return 0;
-}
diff --git a/regress/usr.bin/xlint/test-25.c.exp b/regress/usr.bin/xlint/test-25.c.exp
deleted file mode 100644
index fb9d33c2857..00000000000
--- a/regress/usr.bin/xlint/test-25.c.exp
+++ /dev/null
@@ -1,38 +0,0 @@
-test-25.c:37: warning: illegal pointer combination, op ==
-test-25.c:37: warning: illegal pointer combination, op ==
-test-25.c:37: warning: illegal pointer combination, op ==
-test-25.c:90: warning: b1() arg #1: converted from 'float _Complex' to '_Bool'
-test-25.c:91: warning: b1() arg #1: converted from 'double _Complex' to '_Bool'
-test-25.c:92: warning: b1() arg #1: converted from 'long double _Complex' to '_Bool'
-test-25.c:94: warning: c1() arg #1: converted from 'float _Complex' to 'signed char'
-test-25.c:95: warning: c1() arg #1: converted from 'double _Complex' to 'signed char'
-test-25.c:96: warning: c1() arg #1: converted from 'long double _Complex' to 'signed char'
-test-25.c:98: warning: uc1() arg #1: converted from 'float _Complex' to 'unsigned char'
-test-25.c:99: warning: uc1() arg #1: converted from 'double _Complex' to 'unsigned char'
-test-25.c:100: warning: uc1() arg #1: converted from 'long double _Complex' to 'unsigned char'
-test-25.c:102: warning: s1() arg #1: converted from 'float _Complex' to 'short'
-test-25.c:103: warning: s1() arg #1: converted from 'double _Complex' to 'short'
-test-25.c:104: warning: s1() arg #1: converted from 'long double _Complex' to 'short'
-test-25.c:106: warning: us1() arg #1: converted from 'float _Complex' to 'unsigned short'
-test-25.c:107: warning: us1() arg #1: converted from 'double _Complex' to 'unsigned short'
-test-25.c:108: warning: us1() arg #1: converted from 'long double _Complex' to 'unsigned short'
-test-25.c:110: warning: i1() arg #1: converted from 'float _Complex' to 'int'
-test-25.c:111: warning: i1() arg #1: converted from 'double _Complex' to 'int'
-test-25.c:112: warning: i1() arg #1: converted from 'long double _Complex' to 'int'
-test-25.c:114: warning: ui1() arg #1: converted from 'float _Complex' to 'unsigned int'
-test-25.c:115: warning: ui1() arg #1: converted from 'double _Complex' to 'unsigned int'
-test-25.c:116: warning: ui1() arg #1: converted from 'long double _Complex' to 'unsigned int'
-test-25.c:122: warning: l1() arg #1: converted from 'float _Complex' to 'long'
-test-25.c:123: warning: l1() arg #1: converted from 'double _Complex' to 'long'
-test-25.c:124: warning: l1() arg #1: converted from 'long double _Complex' to 'long'
-test-25.c:126: warning: ul1() arg #1: converted from 'float _Complex' to 'unsigned long'
-test-25.c:127: warning: ul1() arg #1: converted from 'double _Complex' to 'unsigned long'
-test-25.c:128: warning: ul1() arg #1: converted from 'long double _Complex' to 'unsigned long'
-test-25.c:134: warning: ll1() arg #1: converted from 'float _Complex' to 'long long'
-test-25.c:135: warning: ll1() arg #1: converted from 'double _Complex' to 'long long'
-test-25.c:136: warning: ll1() arg #1: converted from 'long double _Complex' to 'long long'
-test-25.c:138: warning: ull1() arg #1: converted from 'float _Complex' to 'unsigned long long'
-test-25.c:139: warning: ull1() arg #1: converted from 'double _Complex' to 'unsigned long long'
-test-25.c:140: warning: ull1() arg #1: converted from 'long double _Complex' to 'unsigned long long'
-Lint pass2:
-f returns value which is always ignored
diff --git a/regress/usr.bin/xlint/test-26.c b/regress/usr.bin/xlint/test-26.c
deleted file mode 100644
index 95f36cd2d7f..00000000000
--- a/regress/usr.bin/xlint/test-26.c
+++ /dev/null
@@ -1,22 +0,0 @@
-/* $OpenBSD: test-26.c,v 1.1 2011/05/31 22:35:19 martynas Exp $ */
-
-/*
- * Placed in the public domain by Martynas Venckus <martynas@openbsd.org>.
- *
- * Test lint warnings about empty non-compound selection statements.
- */
-
-/* ARGSUSED */
-int
-main(void)
-{
- if (0);
- if (0) 0;
- if (0) {}
-
- if (0) {} else;
- if (0) {} else 0;
- if (0) {} else {}
-
- return (0);
-}
diff --git a/regress/usr.bin/xlint/test-26.c.exp b/regress/usr.bin/xlint/test-26.c.exp
deleted file mode 100644
index 602bf1052ea..00000000000
--- a/regress/usr.bin/xlint/test-26.c.exp
+++ /dev/null
@@ -1,5 +0,0 @@
-test-26.c:13: warning: empty body of the if statement
-test-26.c:14: warning: expression has null effect
-test-26.c:17: warning: empty body of the else statement
-test-26.c:18: warning: expression has null effect
-Lint pass2:
diff --git a/regress/usr.bin/xlint/test-3.c b/regress/usr.bin/xlint/test-3.c
deleted file mode 100644
index a9d63e2e474..00000000000
--- a/regress/usr.bin/xlint/test-3.c
+++ /dev/null
@@ -1,26 +0,0 @@
-/* $OpenBSD: test-3.c,v 1.1 2005/11/23 20:38:58 cloder Exp $ */
-
-/*
- * Placed in the public domain by Chad Loder <cloder@openbsd.org>.
- *
- * Test parsing of "inline" keyword.
- */
-
-static inline int
-foo(void);
-
-static inline int
-foo(void)
-{
- return 0;
-}
-
-/* ARGSUSED */
-int
-main(int argc, char* argv[])
-{
- int i;
- i = foo();
- i++;
- return 0;
-}
diff --git a/regress/usr.bin/xlint/test-3.c.exp b/regress/usr.bin/xlint/test-3.c.exp
deleted file mode 100644
index b591b702fb4..00000000000
--- a/regress/usr.bin/xlint/test-3.c.exp
+++ /dev/null
@@ -1 +0,0 @@
-Lint pass2:
diff --git a/regress/usr.bin/xlint/test-4.c b/regress/usr.bin/xlint/test-4.c
deleted file mode 100644
index 767d5788d75..00000000000
--- a/regress/usr.bin/xlint/test-4.c
+++ /dev/null
@@ -1,31 +0,0 @@
-/* $OpenBSD: test-4.c,v 1.1 2005/11/26 20:45:30 cloder Exp $ */
-
-/*
- * Placed in the public domain by Chad Loder <cloder@openbsd.org>.
- *
- * Test parsing of GNU case ranges.
- */
-
-/* ARGSUSED */
-int
-main(int argc, char* argv[])
-{
- int i;
- char c;
-
- c = 'a';
- switch (c)
- {
- case 'a':
- i = 0;
- break;
- case 'A' ... 'Z':
- i = 1;
- break;
- default:
- i = 1;
- }
-
- i++;
- return 0;
-}
diff --git a/regress/usr.bin/xlint/test-4.c.exp b/regress/usr.bin/xlint/test-4.c.exp
deleted file mode 100644
index 82d38580cd7..00000000000
--- a/regress/usr.bin/xlint/test-4.c.exp
+++ /dev/null
@@ -1,2 +0,0 @@
-test-4.c:22: warning: case ranges are illegal in ANSI C
-Lint pass2:
diff --git a/regress/usr.bin/xlint/test-5.c b/regress/usr.bin/xlint/test-5.c
deleted file mode 100644
index 6f07c9b606d..00000000000
--- a/regress/usr.bin/xlint/test-5.c
+++ /dev/null
@@ -1,39 +0,0 @@
-/* $OpenBSD: test-5.c,v 1.2 2006/02/14 16:11:45 moritz Exp $ */
-
-/*
- * Placed in the public domain by Chad Loder <cloder@openbsd.org>.
- *
- * Test warning of promotion of function arguments.
- */
-
-#include <stdint.h>
-
-void
-foo(unsigned long long a)
-{
- a++;
-}
-
-void foobar(int a)
-{
- a++;
-}
-
-void bar(unsigned int a)
-{
- a++;
-}
-
-/* ARGSUSED */
-int
-main(int argc, char* argv[])
-{
- int a = 0;
-
- foo(0); /* ok, promotion of in-range constant */
- foo(a); /* warning: promotion of non-constant */
- foobar(INTMAX_MAX);/* warning: promotion of out-of-range constant */
- bar(-1); /* warning: promotion of out-of-range constant */
- bar(0); /* ok, promotion of in-range constant */
- return 0;
-}
diff --git a/regress/usr.bin/xlint/test-5.c.exp b/regress/usr.bin/xlint/test-5.c.exp
deleted file mode 100644
index 2f730b9f7fa..00000000000
--- a/regress/usr.bin/xlint/test-5.c.exp
+++ /dev/null
@@ -1,4 +0,0 @@
-test-5.c:34: warning: foo() arg #1: converted from 'int' to 'unsigned long long'
-test-5.c:35: warning: foobar() arg #1: conversion of 'long long' to 'int' is out of range
-test-5.c:36: warning: bar() arg #1: conversion of negative constant to unsigned type
-Lint pass2:
diff --git a/regress/usr.bin/xlint/test-6.c b/regress/usr.bin/xlint/test-6.c
deleted file mode 100644
index 95bd7cef151..00000000000
--- a/regress/usr.bin/xlint/test-6.c
+++ /dev/null
@@ -1,27 +0,0 @@
-/* $OpenBSD: test-6.c,v 1.1 2005/11/30 19:39:03 cloder Exp $ */
-
-/*
- * Placed in the public domain by Chad Loder <cloder@openbsd.org>.
- *
- * Test c99 predifined identifier __func__
- */
-#include <string.h>
-
-/* ARGSUSED */
-int
-main(int argc, char* argv[])
-{
- /* c99 implicitly defines: static const char __func__[] = "main"; */
- static const char foo[] = "main";
- char c;
-
- if (strcmp(foo, __func__) == 0)
- return 1;
-
- __func__[0] = 'a'; /* warning: const (not an lvalue) */
- c = __func__[4]; /* ok (c == '\0') */
- c = __func__[5]; /* warning: out of bonds */
-
- c++;
- return 0;
-}
diff --git a/regress/usr.bin/xlint/test-6.c.exp b/regress/usr.bin/xlint/test-6.c.exp
deleted file mode 100644
index 8841cf61e1d..00000000000
--- a/regress/usr.bin/xlint/test-6.c.exp
+++ /dev/null
@@ -1,3 +0,0 @@
-test-6.c:21: warning: left operand of '=' must be modifiable lvalue
-test-6.c:23: warning: array subscript cannot be > 4: 5
-Lint pass2:
diff --git a/regress/usr.bin/xlint/test-7.c b/regress/usr.bin/xlint/test-7.c
deleted file mode 100644
index 1bca5999499..00000000000
--- a/regress/usr.bin/xlint/test-7.c
+++ /dev/null
@@ -1,17 +0,0 @@
-/* $OpenBSD: test-7.c,v 1.1 2005/11/30 19:44:08 cloder Exp $ */
-
-/*
- * Placed in the public domain by Chad Loder <cloder@openbsd.org>.
- *
- * Test slashslash comments.
- */
-
-int foo(int); // comment at end of line, ok
-//comment at beginning of line
-
-/* ARGSUSED */
-int
-main(int argc, char* argv[])
-{
- return 0;
-}
diff --git a/regress/usr.bin/xlint/test-7.c.exp b/regress/usr.bin/xlint/test-7.c.exp
deleted file mode 100644
index 643a4bd12c3..00000000000
--- a/regress/usr.bin/xlint/test-7.c.exp
+++ /dev/null
@@ -1,2 +0,0 @@
-Lint pass2:
-test-7.c:9: foo declared, but never used or defined
diff --git a/regress/usr.bin/xlint/test-8.c b/regress/usr.bin/xlint/test-8.c
deleted file mode 100644
index 6160149c317..00000000000
--- a/regress/usr.bin/xlint/test-8.c
+++ /dev/null
@@ -1,18 +0,0 @@
-/* $OpenBSD: test-8.c,v 1.1 2005/12/01 05:07:55 cloder Exp $ */
-
-/*
- * Placed in the public domain by Chad Loder <cloder@openbsd.org>.
- *
- * Test warning on things declared in the translation unit but never
- * defined.
- */
-#include "test-8.h"
-
-int foo(int); /* warning: declared but never used or defined */
-
-/* ARGSUSED */
-int
-main(int argc, char* argv[])
-{
- return 0;
-}
diff --git a/regress/usr.bin/xlint/test-8.c.exp b/regress/usr.bin/xlint/test-8.c.exp
deleted file mode 100644
index 7b72f77e798..00000000000
--- a/regress/usr.bin/xlint/test-8.c.exp
+++ /dev/null
@@ -1,2 +0,0 @@
-Lint pass2:
-test-8.c:11: foo declared, but never used or defined
diff --git a/regress/usr.bin/xlint/test-8.h b/regress/usr.bin/xlint/test-8.h
deleted file mode 100644
index 04225e88d15..00000000000
--- a/regress/usr.bin/xlint/test-8.h
+++ /dev/null
@@ -1,4 +0,0 @@
-/* $OpenBSD: test-8.h,v 1.1 2005/12/01 05:07:55 cloder Exp $ */
-
-int bar(int); /* should not warn */
-
diff --git a/regress/usr.bin/xlint/test-9.c b/regress/usr.bin/xlint/test-9.c
deleted file mode 100644
index 53281ed3deb..00000000000
--- a/regress/usr.bin/xlint/test-9.c
+++ /dev/null
@@ -1,19 +0,0 @@
-/* $OpenBSD: test-9.c,v 1.2 2005/12/01 14:23:02 cloder Exp $ */
-
-/*
- * Placed in the public domain by Chad Loder <cloder@openbsd.org>.
- *
- * Test warning on inequality comparison of unsigned value with
- * 0.
- */
-
-/* ARGSUSED */
-int
-main(int argc, char* argv[])
-{
- unsigned int i;
- for (i = 100; i >= 0; i--)
- continue;
-
- return 0;
-}
diff --git a/regress/usr.bin/xlint/test-9.c.exp b/regress/usr.bin/xlint/test-9.c.exp
deleted file mode 100644
index 1863b507d44..00000000000
--- a/regress/usr.bin/xlint/test-9.c.exp
+++ /dev/null
@@ -1,2 +0,0 @@
-test-9.c:15: warning: comparison of unsigned int with 0, op >=
-Lint pass2: