diff options
author | Paul Phillips <paulp@improving.org> | 2010-09-19 03:58:11 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-09-19 03:58:11 +0000 |
commit | 28c1aa3c204b0c1081d040a66a628d8f21306b10 (patch) | |
tree | 514e141982f8e29b5ba3787fd7ff323a7990585f /test/files | |
parent | df7119adc0b5816a17130ecc2ecf94d995c86d04 (diff) | |
download | scala-28c1aa3c204b0c1081d040a66a628d8f21306b10.tar.gz scala-28c1aa3c204b0c1081d040a66a628d8f21306b10.tar.bz2 scala-28c1aa3c204b0c1081d040a66a628d8f21306b10.zip |
Guard against overflow in fjbg.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/pos/bug3671.scala | 7 |
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 |