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

test_diff <<'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