From 7570e8a0af6b4d8ea28d422cd8e4645fb23300af Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 3 May 2025 20:02:07 +0900 Subject: string literals --- tests/018.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 tests/018.sh (limited to 'tests/018.sh') 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 -- cgit v1.2.3-70-g09d2