summaryrefslogtreecommitdiff
path: root/test/files/pos
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@typesafe.com>2015-09-22 10:45:34 +0200
committerLukas Rytz <lukas.rytz@typesafe.com>2015-09-22 10:45:34 +0200
commit9995935b6160171527b121263db75b56be6a9ca7 (patch)
tree64d08ed1295f00730eca11dbf714de6e03790166 /test/files/pos
parent128d632573b2d87f16b27724084570df5e3fe2a5 (diff)
parent133e7d053cc62ce0703d611e34fa750175cc3b48 (diff)
downloadscala-9995935b6160171527b121263db75b56be6a9ca7.tar.gz
scala-9995935b6160171527b121263db75b56be6a9ca7.tar.bz2
scala-9995935b6160171527b121263db75b56be6a9ca7.zip
Merge pull request #4711 from lrytz/opt/heuristics
Inliner heuristic for higher-order methods
Diffstat (limited to 'test/files/pos')
-rw-r--r--test/files/pos/list-optim-check.flags1
-rw-r--r--test/files/pos/list-optim-check.scala21
2 files changed, 0 insertions, 22 deletions
diff --git a/test/files/pos/list-optim-check.flags b/test/files/pos/list-optim-check.flags
deleted file mode 100644
index 49d036a887..0000000000
--- a/test/files/pos/list-optim-check.flags
+++ /dev/null
@@ -1 +0,0 @@
--optimize
diff --git a/test/files/pos/list-optim-check.scala b/test/files/pos/list-optim-check.scala
deleted file mode 100644
index f6e6ddec77..0000000000
--- a/test/files/pos/list-optim-check.scala
+++ /dev/null
@@ -1,21 +0,0 @@
-// Tests a map known to crash in optimizer with faster List map in SI-8240.
-// Equivalent tests for collect and flatmap do not crash, but are provided
-// anyway.
-// See ticket SI-8334 for optimizer bug.
-// TODO - Remove this test once SI-8334 is fixed and has its own test.
-class A {
- def f: Boolean = {
- val xs = Nil map (_ => return false)
- true
- }
-
- def g: Boolean = {
- val xs = Nil collect { case _ => return false }
- true
- }
-
- def h: Boolean = {
- val xs = Nil flatMap { _ => return false }
- true
- }
-}