summaryrefslogtreecommitdiff
path: root/bootstraptest/test_insns.rb
diff options
context:
space:
mode:
Diffstat (limited to 'bootstraptest/test_insns.rb')
-rw-r--r--bootstraptest/test_insns.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/bootstraptest/test_insns.rb b/bootstraptest/test_insns.rb
index 9deb57cf23..3d7f9640a2 100644
--- a/bootstraptest/test_insns.rb
+++ b/bootstraptest/test_insns.rb
@@ -204,6 +204,8 @@ tests = [
[ 'opt_str_freeze', %q{ 'true'.freeze }, ],
[ 'opt_nil_p', %q{ nil.nil? }, ],
+ [ 'opt_nil_p', %q{ !Object.nil? }, ],
+ [ 'opt_nil_p', %q{ Class.new{def nil?; true end}.new.nil? }, ],
[ 'opt_str_uminus', %q{ -'true' }, ],
[ 'opt_str_freeze', <<-'},', ], # {
class String