aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/018.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/018.sh')
-rw-r--r--tests/018.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/018.sh b/tests/018.sh
new file mode 100644
index 0000000..eb86a5e
--- /dev/null
+++ b/tests/018.sh
@@ -0,0 +1,22 @@
+set -e
+
+bash ../../test_output.sh "" <<'EOF'
+int main() {
+ "";
+ return 0;
+}
+EOF
+
+bash ../../test_output.sh "" <<'EOF'
+int main() {
+ "abc";
+ return 0;
+}
+EOF
+
+bash ../../test_output.sh "" <<'EOF'
+int main() {
+ "\"foo\"bar\\\n\"";
+ return 0;
+}
+EOF