summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@typesafe.com>2014-05-19 12:56:11 +0200
committerAdriaan Moors <adriaan.moors@typesafe.com>2014-05-19 12:56:11 +0200
commitf0eb8d93d51b110f11786a5f3664cde9db66efcc (patch)
tree3403b50da9e42b66f90922119ac9433390de35d6 /test
parentb11a27e3e655105ec6f7640934072ba7966c88a3 (diff)
downloadscala-f0eb8d93d51b110f11786a5f3664cde9db66efcc.tar.gz
scala-f0eb8d93d51b110f11786a5f3664cde9db66efcc.tar.bz2
scala-f0eb8d93d51b110f11786a5f3664cde9db66efcc.zip
Revert "SI-8601 Avoid over-eager optimization of LOAD_FIELD"
This reverts commit 0b432f9cd22b6e9770852e5b331a15f0534a312c.
Diffstat (limited to 'test')
-rw-r--r--test/files/run/t8601c.flags1
-rw-r--r--test/files/run/t8601c.scala12
2 files changed, 0 insertions, 13 deletions
diff --git a/test/files/run/t8601c.flags b/test/files/run/t8601c.flags
deleted file mode 100644
index 1182725e86..0000000000
--- a/test/files/run/t8601c.flags
+++ /dev/null
@@ -1 +0,0 @@
--optimize \ No newline at end of file
diff --git a/test/files/run/t8601c.scala b/test/files/run/t8601c.scala
deleted file mode 100644
index c487d6825e..0000000000
--- a/test/files/run/t8601c.scala
+++ /dev/null
@@ -1,12 +0,0 @@
-object Test {
- def loadField(x: scala.runtime.IntRef): Unit = x.elem
- def storeField(x: scala.runtime.IntRef): Unit = x.elem = 42
-
- def check(x: => Any) = try { x; sys.error("failed to throw NPE!") } catch { case _: NullPointerException => }
-
- def main(args: Array[String]) {
- check(loadField(null)) // bug: did not NPE under -Ydead-code
- check(storeField(null))
-
- }
-}