diff options
author | 2023-10-10 14:33:42 +0000 | |
---|---|---|
committer | 2023-10-10 14:33:42 +0000 | |
commit | af1a266670d040d2f4083ff309d732d648afba2a (patch) | |
tree | 2fc46203448ddcc6f81546d379abfaeb323575e9 /meson/test cases/common/149 dotinclude | |
parent | e02cda008591317b1625707ff8e115a4841aa889 (diff) |
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
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> |