summaryrefslogtreecommitdiffstats
path: root/test cases/common/14 configure file/prog.c
blob: 85e66b97ecb300bd6d4f7bc7fbe4b64fb578be22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
}