summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2013-05-19 03:42:03 -0700
committerPaul Phillips <paulp@improving.org>2013-05-19 03:53:57 -0700
commit3fb317560c7e1220cd51c7f8408cf3db6a84b290 (patch)
tree237347c0d9da18a4d9e151a9928453b2d347c613 /test/files
parent01dec25425cefb6acc147d8341893eb70ca76245 (diff)
downloadscala-3fb317560c7e1220cd51c7f8408cf3db6a84b290.tar.gz
scala-3fb317560c7e1220cd51c7f8408cf3db6a84b290.tar.bz2
scala-3fb317560c7e1220cd51c7f8408cf3db6a84b290.zip
SI-7427 stop crashing under -Ydebug.
Change "dumpClassesAndAbort" to "devWarning". You can witness it happen like so. % scalac test/files/pos/t7427.scala -Ydebug -Xdev ... [running phase cleanup on t7427.scala] [running phase icode on t7427.scala] warning: !!! PJUMP(method matchEnd4)/scala.tools.nsc.backend.icode.GenICode$PJUMP is not a control flow instruction warning: !!! PJUMP(method case6)/scala.tools.nsc.backend.icode.GenICode$PJUMP is not a control flow instruction [running phase inliner on t7427.scala] [running phase inlinehandlers on t7427.scala] Having now lived with this for months, I have no ambition to unravel the actual problem, I just want it to stop crashing.
Diffstat (limited to 'test/files')
-rw-r--r--test/files/pos/t7427.flags1
-rw-r--r--test/files/pos/t7427.scala4
2 files changed, 5 insertions, 0 deletions
diff --git a/test/files/pos/t7427.flags b/test/files/pos/t7427.flags
new file mode 100644
index 0000000000..9c7d6400fc
--- /dev/null
+++ b/test/files/pos/t7427.flags
@@ -0,0 +1 @@
+-Ydebug
diff --git a/test/files/pos/t7427.scala b/test/files/pos/t7427.scala
new file mode 100644
index 0000000000..cca52950d1
--- /dev/null
+++ b/test/files/pos/t7427.scala
@@ -0,0 +1,4 @@
+// Compiles with no options
+// Compiles with -Ydebug -Ydisable-unreachable-prevention
+// Crashes with -Ydebug
+trait Bippy { 3 match { case 3 => } }