aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/097.sh
blob: c5b8d0d2621d6396a3fb3892fe7b788acf2fca2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
cat <<'EOF' > expected
1
EOF

test_diff <<'EOF'
int printf();

#define A
#define B

int main() {
#if defined A && defined(B)
    printf("1\n");
#else
    printf("2\n");
#endif
}
EOF