summaryrefslogtreecommitdiff
path: root/testsuite/tests/lexing/escape.ocaml.reference
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/lexing/escape.ocaml.reference')
-rw-r--r--testsuite/tests/lexing/escape.ocaml.reference3
1 files changed, 3 insertions, 0 deletions
diff --git a/testsuite/tests/lexing/escape.ocaml.reference b/testsuite/tests/lexing/escape.ocaml.reference
index 9cfb56141e..fe53e3d982 100644
--- a/testsuite/tests/lexing/escape.ocaml.reference
+++ b/testsuite/tests/lexing/escape.ocaml.reference
@@ -5,6 +5,7 @@ Warning 14 [illegal-backslash]: illegal backslash escape in string.
Hint: Single backslashes \ are reserved for escape sequences
(\n, \r, ...). Did you check the list of OCaml escape sequences?
To get a backslash character, escape it with a second backslash: \\.
+
val invalid : string = "\\99"
Line 1, characters 15-19:
1 | let invalid = "\999" ;;
@@ -21,6 +22,7 @@ Warning 14 [illegal-backslash]: illegal backslash escape in string.
Hint: Single backslashes \ are reserved for escape sequences
(\n, \r, ...). Did you check the list of OCaml escape sequences?
To get a backslash character, escape it with a second backslash: \\.
+
val invalid : string = "\\o77"
Line 1, characters 15-17:
1 | let invalid = "\o99" ;;
@@ -29,5 +31,6 @@ Warning 14 [illegal-backslash]: illegal backslash escape in string.
Hint: Single backslashes \ are reserved for escape sequences
(\n, \r, ...). Did you check the list of OCaml escape sequences?
To get a backslash character, escape it with a second backslash: \\.
+
val invalid : string = "\\o99"