diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-05-03 20:02:07 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-05-03 20:02:07 +0900 |
| commit | 7570e8a0af6b4d8ea28d422cd8e4645fb23300af (patch) | |
| tree | e131c5cf1ebdc7516c4e86587bb88b174090779f /tests/018.sh | |
| parent | 2783653dd95c2e4acb69151aee9350926204493a (diff) | |
| download | P4Dcc-7570e8a0af6b4d8ea28d422cd8e4645fb23300af.tar.gz P4Dcc-7570e8a0af6b4d8ea28d422cd8e4645fb23300af.tar.zst P4Dcc-7570e8a0af6b4d8ea28d422cd8e4645fb23300af.zip | |
string literals
Diffstat (limited to 'tests/018.sh')
| -rw-r--r-- | tests/018.sh | 22 |
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 |
