summaryrefslogtreecommitdiff
path: root/bootstraptest/test_syntax.rb
diff options
context:
space:
mode:
Diffstat (limited to 'bootstraptest/test_syntax.rb')
-rw-r--r--bootstraptest/test_syntax.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/bootstraptest/test_syntax.rb b/bootstraptest/test_syntax.rb
index b25d0d43c9..8b499c50d5 100644
--- a/bootstraptest/test_syntax.rb
+++ b/bootstraptest/test_syntax.rb
@@ -624,3 +624,7 @@ assert_equal '2', %q{
end
}
+assert_match /illegal multibyte char/, %q{
+ STDERR.reopen(STDOUT)
+ eval("\"\xfd".force_encoding("utf-8"))
+}, '[ruby-dev:32429]'