aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_regexp.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ruby/test_regexp.rb b/test/ruby/test_regexp.rb
new file mode 100644
index 0000000000..ea78abdc41
--- /dev/null
+++ b/test/ruby/test_regexp.rb
@@ -0,0 +1,7 @@
+require 'test/unit'
+
+class TestRegexp < Test::Unit::TestCase
+ def test_undefined_bytecode_bug
+ assert_nothing_raised("[ruby-dev:24643]") { /(?:(?:[a]*[a])?b)*a*$/ =~ "aabaaca" }
+ end
+end