aboutsummaryrefslogtreecommitdiff
path: root/test cases/common/150 dotinclude
diff options
context:
space:
mode:
Diffstat (limited to 'test cases/common/150 dotinclude')
-rw-r--r--test cases/common/150 dotinclude/dotproc.c10
-rw-r--r--test cases/common/150 dotinclude/meson.build5
-rw-r--r--test cases/common/150 dotinclude/stdio.h6
3 files changed, 21 insertions, 0 deletions
diff --git a/test cases/common/150 dotinclude/dotproc.c b/test cases/common/150 dotinclude/dotproc.c
new file mode 100644
index 0000000..f48c330
--- /dev/null
+++ b/test cases/common/150 dotinclude/dotproc.c
@@ -0,0 +1,10 @@
+#include"stdio.h"
+
+#ifndef WRAPPER_INCLUDED
+#error The wrapper stdio.h was not included.
+#endif
+
+int main(void) {
+ printf("Eventually I got printed.\n");
+ return 0;
+}
diff --git a/test cases/common/150 dotinclude/meson.build b/test cases/common/150 dotinclude/meson.build
new file mode 100644
index 0000000..e0c2cd7
--- /dev/null
+++ b/test cases/common/150 dotinclude/meson.build
@@ -0,0 +1,5 @@
+project('dotinclude', 'c')
+
+executable('dotproc', 'dotproc.c',
+ implicit_include_directories : false)
+
diff --git a/test cases/common/150 dotinclude/stdio.h b/test cases/common/150 dotinclude/stdio.h
new file mode 100644
index 0000000..b6bd09f
--- /dev/null
+++ b/test cases/common/150 dotinclude/stdio.h
@@ -0,0 +1,6 @@
+// There is no #pragma once because we _want_ to cause an eternal loop
+// if this wrapper invokes itself.
+
+#define WRAPPER_INCLUDED
+
+#include<stdio.h>