summaryrefslogtreecommitdiff
path: root/test/files/run
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@epfl.ch>2012-05-18 15:16:33 +0200
committerLukas Rytz <lukas.rytz@epfl.ch>2012-05-18 15:50:44 +0200
commit800bdf81228cf10e6c93ae39030f9edfae96c679 (patch)
tree7845ab9a80f125cc8b5fb5e99df6cef20bffe3e7 /test/files/run
parentef7708812fac32ca0c2a05330222a6b0806c9054 (diff)
downloadscala-800bdf81228cf10e6c93ae39030f9edfae96c679.tar.gz
scala-800bdf81228cf10e6c93ae39030f9edfae96c679.tar.bz2
scala-800bdf81228cf10e6c93ae39030f9edfae96c679.zip
Fix 4138
Diffstat (limited to 'test/files/run')
-rw-r--r--test/files/run/t4138.check2
-rw-r--r--test/files/run/t4138.scala6
2 files changed, 8 insertions, 0 deletions
diff --git a/test/files/run/t4138.check b/test/files/run/t4138.check
new file mode 100644
index 0000000000..f561b5e6b0
--- /dev/null
+++ b/test/files/run/t4138.check
@@ -0,0 +1,2 @@
+[1.45] parsed: "lir 'de\' ' \\ \n / upa \"new\" \t parsing"
+[1.5] parsed: "s "
diff --git a/test/files/run/t4138.scala b/test/files/run/t4138.scala
new file mode 100644
index 0000000000..131489e581
--- /dev/null
+++ b/test/files/run/t4138.scala
@@ -0,0 +1,6 @@
+object Test extends App {
+ object p extends scala.util.parsing.combinator.JavaTokenParsers
+
+ println(p.parse(p.stringLiteral, """"lir 'de\' ' \\ \n / upa \"new\" \t parsing""""))
+ println(p.parse(p.stringLiteral, """"s " lkjse""""))
+}