summaryrefslogtreecommitdiff
path: root/test/files/pos/FPTest.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/FPTest.scala')
-rw-r--r--test/files/pos/FPTest.scala11
1 files changed, 11 insertions, 0 deletions
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);
+ }
+}