summaryrefslogtreecommitdiff
path: root/regress/usr.bin/xlint/test-1.c
diff options
context:
space:
mode:
authorChad Loder <cloder@cvs.openbsd.org>2005-11-21 18:25:58 +0000
committerChad Loder <cloder@cvs.openbsd.org>2005-11-21 18:25:58 +0000
commit3e53c7526c9e93e584fee70a723c8a0bd8800334 (patch)
treeb7b109cb23e2e1c48f6367870f410b18098f438f /regress/usr.bin/xlint/test-1.c
parent0bec780131c1105ad6cf2a2cbc989ee84ffdbb10 (diff)
Basic regress framework for xlint. Not hooked up yet.
OK deraadt, input from millert
Diffstat (limited to 'regress/usr.bin/xlint/test-1.c')
-rw-r--r--regress/usr.bin/xlint/test-1.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/regress/usr.bin/xlint/test-1.c b/regress/usr.bin/xlint/test-1.c
new file mode 100644
index 00000000000..f35c2c8eb9d
--- /dev/null
+++ b/regress/usr.bin/xlint/test-1.c
@@ -0,0 +1,21 @@
+/* $OpenBSD: test-1.c,v 1.1 2005/11/21 18:25:57 cloder Exp $ */
+
+/*
+ * This program is in the public domain.
+ *
+ * Test the ARGSUSED feature of lint.
+ */
+
+int
+unusedargs(int unused)
+{
+ return 0;
+}
+
+/* ARGSUSED */
+int
+main(int argc, char* argv[])
+{
+ unusedargs(1);
+ return 0;
+}