diff options
Diffstat (limited to 'meson/test cases/common/149 dotinclude')
-rw-r--r-- | meson/test cases/common/149 dotinclude/dotproc.c | 10 | ||||
-rw-r--r-- | meson/test cases/common/149 dotinclude/meson.build | 5 | ||||
-rw-r--r-- | meson/test cases/common/149 dotinclude/stdio.h | 6 |
3 files changed, 21 insertions, 0 deletions
diff --git a/meson/test cases/common/149 dotinclude/dotproc.c b/meson/test cases/common/149 dotinclude/dotproc.c new file mode 100644 index 000000000..f48c330bd --- /dev/null +++ b/meson/test cases/common/149 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/meson/test cases/common/149 dotinclude/meson.build b/meson/test cases/common/149 dotinclude/meson.build new file mode 100644 index 000000000..e0c2cd7a0 --- /dev/null +++ b/meson/test cases/common/149 dotinclude/meson.build @@ -0,0 +1,5 @@ +project('dotinclude', 'c') + +executable('dotproc', 'dotproc.c', + implicit_include_directories : false) + diff --git a/meson/test cases/common/149 dotinclude/stdio.h b/meson/test cases/common/149 dotinclude/stdio.h new file mode 100644 index 000000000..b6bd09fc4 --- /dev/null +++ b/meson/test cases/common/149 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> |