aboutsummaryrefslogtreecommitdiff
path: root/test cases/common/14 configure file/prog.c
blob: 89a718e703d5a6f767a62b5bf6623c6525e08d45 (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(int argc, char **argv) {
#ifndef BE_TRUE
    return 1;
#else
    return strcmp(MESSAGE, "mystring");
#endif
}