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

cat <<'EOF' > expected
42 42
EOF
bash ../../test_diff.sh <<'EOF'
int printf();

int main() {
    int x;
    int* y;
    y = &x;
    *y = 42;
    printf("%d %d\n", x, *y);
    return 0;
}
EOF