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

cat <<'EOF' > header.h
int add(int a, int b) {
    return a + b;
}

int printf(const char*, ...);
EOF

test_diff <<'EOF'
#include "header.h"

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