summaryrefslogtreecommitdiff
path: root/ext/-test-/time/init.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-10 17:50:38 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-10 17:50:38 +0000
commit4dedfc3cc97c2470f1926eaef49e381839e157ef (patch)
treeb79a762c2874916fde94a7397bfd76d4114edb9c /ext/-test-/time/init.c
parent68ebbbfebe5b666cf76ab41f1e6191a172d62690 (diff)
Add tests for rb_time_timespec_new
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/-test-/time/init.c')
-rw-r--r--ext/-test-/time/init.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/ext/-test-/time/init.c b/ext/-test-/time/init.c
new file mode 100644
index 0000000000..01a20b8b3d
--- /dev/null
+++ b/ext/-test-/time/init.c
@@ -0,0 +1,11 @@
+#include "ruby.h"
+
+#define init(n) {void Init_##n(VALUE klass); Init_##n(klass);}
+
+void
+Init_time(void)
+{
+ VALUE mBug = rb_define_module("Bug");
+ VALUE klass = rb_define_class_under(mBug, "Time", rb_cTime);
+ TEST_INIT_FUNCS(init);
+}