aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/019.sh
blob: d31f1541687fcefe9f3b3cfdb8802466e27793ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
set -e

bash ../../test_output.sh "" <<'EOF'
int printf();

int main() {
    printf("");
    return 0;
}
EOF

bash ../../test_output.sh "Hello, World!" <<'EOF'
int printf();

int main() {
    printf("Hello, World!\n");
    return 0;
}
EOF

bash ../../test_output.sh '"Hello, World!"' <<'EOF'
int printf();

int main() {
    printf("\"Hello, World!\"\n");
    return 0;
}
EOF