aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/046.sh
blob: 240d96947f30c3a03fe71215a3b4ce1128498c50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
cat <<'EOF' > expected
42
EOF
test_diff <<'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