summaryrefslogtreecommitdiff
path: root/spec/rubyspec/core/thread/backtrace/location/fixtures/main.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/rubyspec/core/thread/backtrace/location/fixtures/main.rb')
-rw-r--r--spec/rubyspec/core/thread/backtrace/location/fixtures/main.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/rubyspec/core/thread/backtrace/location/fixtures/main.rb b/spec/rubyspec/core/thread/backtrace/location/fixtures/main.rb
new file mode 100644
index 0000000000..d2d14ac957
--- /dev/null
+++ b/spec/rubyspec/core/thread/backtrace/location/fixtures/main.rb
@@ -0,0 +1,5 @@
+def example
+ caller_locations[0].path
+end
+
+print example