aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/022.sh
blob: 93efe9b9e05f0bc26d8693908483b39032d451da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
cat <<'EOF' > expected
42 42
EOF
test_diff <<'EOF'
int printf();

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