summaryrefslogtreecommitdiff
path: root/regress/usr.bin/xlint/test-9.c
diff options
context:
space:
mode:
authorChad Loder <cloder@cvs.openbsd.org>2005-12-01 05:19:26 +0000
committerChad Loder <cloder@cvs.openbsd.org>2005-12-01 05:19:26 +0000
commit897171a81176afa8882874f01be04e8cc66da1fa (patch)
treec486d93b1cbf53f4d552c94006d2daa8ade2fb17 /regress/usr.bin/xlint/test-9.c
parentceb57bf35703528fc6f616b6a1b9c30283f61cbe (diff)
Regress test for testing unsigned less than 0
Diffstat (limited to 'regress/usr.bin/xlint/test-9.c')
-rw-r--r--regress/usr.bin/xlint/test-9.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/regress/usr.bin/xlint/test-9.c b/regress/usr.bin/xlint/test-9.c
new file mode 100644
index 00000000000..0d311647651
--- /dev/null
+++ b/regress/usr.bin/xlint/test-9.c
@@ -0,0 +1,19 @@
+/* $OpenBSD: test-9.c,v 1.1 2005/12/01 05:19:25 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.
+ */
+
+/* ARGSUSED */
+int
+main(int argc, char* argv[])
+{
+ unsigned int i;
+ for (i = 100; i >= 0; i--)
+ continue;
+
+ return 0;
+}