summaryrefslogtreecommitdiff
path: root/jni/ruby/ext/-test-/string/nofree.c
blob: d3d8071ff92f57fcb70559a83dd25399a82da610 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "ruby.h"

VALUE
bug_str_nofree(VALUE self)
{
    return rb_str_new_cstr("abcdef");
}

void
Init_nofree(VALUE klass)
{
    rb_define_singleton_method(klass, "nofree", bug_str_nofree, 0);
}