aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/048.sh
blob: 72868152899168ea00e1882751e1cbd6a950eeb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
cat <<'EOF' > expected
argc = 4
argv[1] = hoge
argv[2] = piyo
argv[3] = fuga
EOF
test_diff hoge piyo fuga<<'EOF'
int printf();

int main(int argc, char** argv) {
    printf("argc = %d\n", argc);
    int i;
    for (i = 1; i < argc; ++i) {
        printf("argv[%d] = %s\n", i, argv[i]);
    }
    return 0;
}
EOF