aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/060.sh
blob: 03d65b7aef3ae1deec77ea7bfe140cf2fed3a14c (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
42
EOF

cat <<'EOF' > header.h
#define A 42
EOF

bash ../../test_diff.sh <<'EOF'
#include "header.h"

int printf();

int main() {
    printf("%d\n", A);
    return 0;
}
EOF