From ae4910485511c12cda0c110b6563610041070b5d Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Mon, 1 Nov 2010 20:31:12 +0000 Subject: Created @strictfp annotation in scala.annotation. your fp with no tolerance for tomfoolery, this is the commit for you. Closes #1708, review by community. --- test/files/pos/FPTest.scala | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/files/pos/FPTest.scala (limited to 'test/files') diff --git a/test/files/pos/FPTest.scala b/test/files/pos/FPTest.scala new file mode 100644 index 0000000000..b351b7bb9c --- /dev/null +++ b/test/files/pos/FPTest.scala @@ -0,0 +1,11 @@ +// On some hypothetical future day when we can test the emitted bytecode, +// should look for the fp bit. Until then, just a pos test. +import annotation.strictfp + +@strictfp class FPTest { + def main(args: Array[String]): Unit = { + val d: Double = 8e+307 + println(4.0 * d * 0.5); + println(2.0 * d); + } +} -- cgit v1.2.3