summaryrefslogtreecommitdiff
path: root/test/files/run/t4671.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t4671.scala')
-rw-r--r--test/files/run/t4671.scala13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/files/run/t4671.scala b/test/files/run/t4671.scala
new file mode 100644
index 0000000000..6170104c33
--- /dev/null
+++ b/test/files/run/t4671.scala
@@ -0,0 +1,13 @@
+import scala.tools.partest.ReplTest
+
+object Test extends ReplTest {
+ // My god...it's full of quines
+ def code = """
+object o { val file = sys.props("partest.cwd") + "/t4671.scala" }
+val s = scala.io.Source.fromFile(o.file)
+println(s.getLines.mkString("\n"))
+
+val s = scala.io.Source.fromFile(o.file)
+println(s.mkString(""))
+""".trim
+}