diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-05-22 16:08:06 +0200 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-05-22 16:08:06 +0200 |
commit | 718bffedfad111a44dcebfcd327d52dbeee30491 (patch) | |
tree | b7d9df46d09c85e72440b7c95332e386ff02dfb5 /tests/pending/run/blame_eye_triple_eee-float.scala | |
parent | 6965b470d433f501203c4e3d77b0919f826691ba (diff) | |
download | dotty-718bffedfad111a44dcebfcd327d52dbeee30491.tar.gz dotty-718bffedfad111a44dcebfcd327d52dbeee30491.tar.bz2 dotty-718bffedfad111a44dcebfcd327d52dbeee30491.zip |
Remove tests from pending.
Diffstat (limited to 'tests/pending/run/blame_eye_triple_eee-float.scala')
-rw-r--r-- | tests/pending/run/blame_eye_triple_eee-float.scala | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/tests/pending/run/blame_eye_triple_eee-float.scala b/tests/pending/run/blame_eye_triple_eee-float.scala deleted file mode 100644 index e62461828..000000000 --- a/tests/pending/run/blame_eye_triple_eee-float.scala +++ /dev/null @@ -1,61 +0,0 @@ -object Test extends dotty.runtime.LegacyApp { - import Float.NaN - - // NaN must not equal NaN no matter what optimizations are applied - // All the following will seem redundant, but to an optimizer - // they can appear different - - val x = NaN - - if (NaN == NaN) - println("if (NaN == NaN) is broken") - else - println("if (NaN == NaN) is good") - - if (x == x) - println("if (x == x) is broken") - else - println("if (x == x) is good") - - if (x == NaN) - println("if (x == NaN) is broken") - else - println("if (x == NaN) is good") - - if (NaN != NaN) - println("if (NaN != NaN) is good") - else - println("if (NaN != NaN) broken") - - if (x != x) - println("if (x != x) is good") - else - println("if (x != x) broken") - - if (NaN != x) - println("if (NaN != x) is good") - else - println("if (NaN != x) is broken") - - x match { - case 0.0f => println("x matched 0!") - case NaN => println("x matched NaN!") - case _ => println("x matching was good") - } - - NaN match { - case 0.0f => println("NaN matched 0!") - case NaN => println("NaN matched NaN!") - case _ => println("NaN matching was good") - } - - var z = 0.0f - var i = 0 - while (i < 10) { - if (i % 2 == 0) z = NaN - else z = NaN - i += 1 - } - if (z.isNaN && i == 10) println("loop with NaN was goood") - else println("loop with NaN was broken") -} |