summaryrefslogtreecommitdiff
path: root/test/files/pos/bug3671.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-09-19 03:58:11 +0000
committerPaul Phillips <paulp@improving.org>2010-09-19 03:58:11 +0000
commit28c1aa3c204b0c1081d040a66a628d8f21306b10 (patch)
tree514e141982f8e29b5ba3787fd7ff323a7990585f /test/files/pos/bug3671.scala
parentdf7119adc0b5816a17130ecc2ecf94d995c86d04 (diff)
downloadscala-28c1aa3c204b0c1081d040a66a628d8f21306b10.tar.gz
scala-28c1aa3c204b0c1081d040a66a628d8f21306b10.tar.bz2
scala-28c1aa3c204b0c1081d040a66a628d8f21306b10.zip
Guard against overflow in fjbg.
Diffstat (limited to 'test/files/pos/bug3671.scala')
-rw-r--r--test/files/pos/bug3671.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/pos/bug3671.scala b/test/files/pos/bug3671.scala
new file mode 100644
index 0000000000..1ca9327bb7
--- /dev/null
+++ b/test/files/pos/bug3671.scala
@@ -0,0 +1,7 @@
+object Crash {
+ def crash(value: Int): Unit =
+ value match {
+ case java.lang.Integer.MAX_VALUE => println("MAX_VALUE")
+ case java.lang.Integer.MIN_VALUE => println("MIN_VALUE")
+ }
+} \ No newline at end of file