diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-05-19 12:56:11 +0200 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-05-19 12:56:11 +0200 |
commit | f0eb8d93d51b110f11786a5f3664cde9db66efcc (patch) | |
tree | 3403b50da9e42b66f90922119ac9433390de35d6 /test | |
parent | b11a27e3e655105ec6f7640934072ba7966c88a3 (diff) | |
download | scala-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.flags | 1 | ||||
-rw-r--r-- | test/files/run/t8601c.scala | 12 |
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)) - - } -} |