Debian Codegraph @

test cases/common/14 configure file/prog9.c

raw
1 #include <string.h>
2 #include <config9a.h>
3 #include <config9b.h>
4
5 #if defined(A_UNDEFINED) || defined(B_UNDEFINED)
6 #error "Should not be defined"
7 #endif
8
9 #if !defined(A_DEFINED) || !defined(B_DEFINED)
10 #error "Should be defined"
11 #endif
12
13 int main(void) {
14 return strcmp(A_STRING, "foo")
15 || strcmp(B_STRING, "foo")
16 || A_INT != 42
17 || B_INT != 42;
18 }