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/218 include_dir dot | |
parent | e02cda008591317b1625707ff8e115a4841aa889 (diff) |
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'meson/test cases/common/218 include_dir dot')
5 files changed, 23 insertions, 0 deletions
diff --git a/meson/test cases/common/218 include_dir dot/meson.build b/meson/test cases/common/218 include_dir dot/meson.build new file mode 100644 index 000000000..71f7189c5 --- /dev/null +++ b/meson/test cases/common/218 include_dir dot/meson.build @@ -0,0 +1,8 @@ +project('Include Here', 'c') + +# The layout with the .h file in . and the .c files in src/ is critical to +# tickle the bug #5847 + +inc = include_directories('.') + +subdir('src')
\ No newline at end of file diff --git a/meson/test cases/common/218 include_dir dot/rone.h b/meson/test cases/common/218 include_dir dot/rone.h new file mode 100644 index 000000000..48d7a79e8 --- /dev/null +++ b/meson/test cases/common/218 include_dir dot/rone.h @@ -0,0 +1 @@ +int rOne(void);
\ No newline at end of file diff --git a/meson/test cases/common/218 include_dir dot/src/main.c b/meson/test cases/common/218 include_dir dot/src/main.c new file mode 100644 index 000000000..192b783f6 --- /dev/null +++ b/meson/test cases/common/218 include_dir dot/src/main.c @@ -0,0 +1,5 @@ +#include "rone.h" + +int main(void) { + return rOne(); +} diff --git a/meson/test cases/common/218 include_dir dot/src/meson.build b/meson/test cases/common/218 include_dir dot/src/meson.build new file mode 100644 index 000000000..fcbefb0b9 --- /dev/null +++ b/meson/test cases/common/218 include_dir dot/src/meson.build @@ -0,0 +1,6 @@ +t = executable( + 'main', + ['main.c', 'rone.c'], + include_directories : inc, + implicit_include_directories : false, +)
\ No newline at end of file diff --git a/meson/test cases/common/218 include_dir dot/src/rone.c b/meson/test cases/common/218 include_dir dot/src/rone.c new file mode 100644 index 000000000..63cb0d319 --- /dev/null +++ b/meson/test cases/common/218 include_dir dot/src/rone.c @@ -0,0 +1,3 @@ +int rOne(void) { + return 1; +}
\ No newline at end of file |