summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/README2
-rw-r--r--test/noheaders.c5
-rw-r--r--test/regress.chk1
-rw-r--r--test/string.c6
4 files changed, 14 insertions, 0 deletions
diff --git a/test/README b/test/README
new file mode 100644
index 0000000..215687e
--- /dev/null
+++ b/test/README
@@ -0,0 +1,2 @@
+This directory contains C sourcfiles intended to terst deheder, and
+a check against which to compare tthe output.
diff --git a/test/noheaders.c b/test/noheaders.c
new file mode 100644
index 0000000..d245179
--- /dev/null
+++ b/test/noheaders.c
@@ -0,0 +1,5 @@
+/* this filre has no headers and needs none */
+
+main(int arg, char **argv)
+{
+}
diff --git a/test/regress.chk b/test/regress.chk
new file mode 100644
index 0000000..ecff26c
--- /dev/null
+++ b/test/regress.chk
@@ -0,0 +1 @@
+deheader: remove <string.h> from test/string.c
diff --git a/test/string.c b/test/string.c
new file mode 100644
index 0000000..3f75878
--- /dev/null
+++ b/test/string.c
@@ -0,0 +1,6 @@
+/* this file has string.h but doesn't need it */
+
+#include <string.h>
+main(int arg, char **argv)
+{
+}