aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/thread/backtrace/location/fixtures/locations_in_main.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/thread/backtrace/location/fixtures/locations_in_main.rb')
-rw-r--r--spec/ruby/core/thread/backtrace/location/fixtures/locations_in_main.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/ruby/core/thread/backtrace/location/fixtures/locations_in_main.rb b/spec/ruby/core/thread/backtrace/location/fixtures/locations_in_main.rb
new file mode 100644
index 0000000000..b124c8161c
--- /dev/null
+++ b/spec/ruby/core/thread/backtrace/location/fixtures/locations_in_main.rb
@@ -0,0 +1,5 @@
+1.times do
+ puts Thread.current.backtrace_locations(1..1)[0].label
+end
+
+require_relative 'locations_in_required'