From 2faf2957bf64cf5cd4cbe0da67efb7c70f54c645 Mon Sep 17 00:00:00 2001 From: ko1 Date: Fri, 25 Jan 2008 18:02:01 +0000 Subject: * compile.c, compile.h: fix stack pointer issues. calculate correct stack depth at compile time. * insns.def (emptstack): remove it and add a new insn "adjuststack". * bootstraptest/test_knownbug.rb: move/remove fixed test. * bootstraptest/test_syntax.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bootstraptest/test_syntax.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'bootstraptest/test_syntax.rb') diff --git a/bootstraptest/test_syntax.rb b/bootstraptest/test_syntax.rb index ed47d5987..1c5121cda 100644 --- a/bootstraptest/test_syntax.rb +++ b/bootstraptest/test_syntax.rb @@ -746,3 +746,15 @@ assert_normal_exit %q{ end }, 'reported by Yusuke ENDOH' +assert_equal 'ok', %q{ + 1.times do + [ + 1, 2, 3, 4, 5, 6, 7, 8, + begin + false ? next : p + break while true + end + ] + end + :ok +}, '[ruby-dev:32882]' -- cgit