diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-01-12 07:41:35 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-01-12 07:41:35 +0000 |
commit | a7881025724af58895a962c14ea9f127f5186ad7 (patch) | |
tree | 4d355f722daedd8acdb45a77c0dbaf239f2713b3 /test | |
parent | 9a5fefbe03996d198306f81f5ba25e6b59ee25cd (diff) | |
download | ruby-a7881025724af58895a962c14ea9f127f5186ad7.tar.gz |
immediate message mode of compile error
* compile.c (append_compile_error): set Qtrue for erred state with
showing the message immediately.
* iseq.c (prepare_iseq_build): make immediate message mode if main
or top level context, not to show the failed path twice in the
first line.
* iseq.c (cleanup_iseq_build): raise default message exception if
immediate message mode.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_syntax.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_syntax.rb b/test/ruby/test_syntax.rb index 61aab4bee5..0f927a328e 100644 --- a/test/ruby/test_syntax.rb +++ b/test/ruby/test_syntax.rb @@ -975,6 +975,10 @@ eom end; end + def test_invalid_jump + assert_in_out_err(%w[-e redo], "", [], /^-e:1: /) + end + private def not_label(x) @result = x; @not_label ||= nil end |