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

cat <<'EOF' > expected
42
246
221
EOF

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

#define A(x) x
#define B(x) x+x
#define C(x, y) x*y

int main() {
    printf("%d\n", A(42));
    printf("%d\n", B(123));
    printf("%d\n", C(13, 17));
}
EOF