aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/language/fixtures/dollar_zero.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/language/fixtures/dollar_zero.rb')
-rw-r--r--spec/ruby/language/fixtures/dollar_zero.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/ruby/language/fixtures/dollar_zero.rb b/spec/ruby/language/fixtures/dollar_zero.rb
new file mode 100644
index 0000000000..683bce8d4e
--- /dev/null
+++ b/spec/ruby/language/fixtures/dollar_zero.rb
@@ -0,0 +1,6 @@
+puts $0
+puts __FILE__
+
+if $0 == __FILE__
+ print "OK"
+end