aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/097.sh
blob: 00d67f2fbb9063bcc8f08be2a6ac95c8c93f2d39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
set -e

cat <<'EOF' > expected
1
EOF

bash ../../test_diff.sh <<'EOF'
int printf();

#define A
#define B

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