aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/019.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/019.sh')
-rw-r--r--tests/019.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/019.sh b/tests/019.sh
new file mode 100644
index 0000000..d31f154
--- /dev/null
+++ b/tests/019.sh
@@ -0,0 +1,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