aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/046.sh
blob: 3011ff3aac29b0939afa4e873d66a7da617e6572 (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
EOF
bash ../../test_diff.sh <<'EOF'
void* calloc();
int printf();

struct S {
    int x;
};
typedef struct S S;

int main() {
    S* s = calloc(1, sizeof(S));
    s->x = 42;
    printf("%d\n", s->x);
    return 0;
}
EOF