diff options
Diffstat (limited to 'meson/test cases/common/14 configure file/prog.c')
-rw-r--r-- | meson/test cases/common/14 configure file/prog.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/meson/test cases/common/14 configure file/prog.c b/meson/test cases/common/14 configure file/prog.c new file mode 100644 index 000000000..85e66b97e --- /dev/null +++ b/meson/test cases/common/14 configure file/prog.c @@ -0,0 +1,17 @@ +#include <string.h> +/* config.h must not be in quotes: + * https://gcc.gnu.org/onlinedocs/cpp/Search-Path.html + */ +#include <config.h> + +#ifdef SHOULD_BE_UNDEF +#error "FAIL!" +#endif + +int main(void) { +#ifndef BE_TRUE + return 1; +#else + return strcmp(MESSAGE, "mystring"); +#endif +} |