summaryrefslogtreecommitdiff
path: root/spec/ruby/optional/capi/ext/module_under_autoload_spec.c
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/optional/capi/ext/module_under_autoload_spec.c')
-rw-r--r--spec/ruby/optional/capi/ext/module_under_autoload_spec.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/ruby/optional/capi/ext/module_under_autoload_spec.c b/spec/ruby/optional/capi/ext/module_under_autoload_spec.c
new file mode 100644
index 0000000000..b19466e555
--- /dev/null
+++ b/spec/ruby/optional/capi/ext/module_under_autoload_spec.c
@@ -0,0 +1,15 @@
+#include "ruby.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void Init_module_under_autoload_spec(void) {
+ VALUE specs = rb_const_get(rb_cObject, rb_intern("CApiModuleSpecs"));
+ rb_define_module_under(specs, "ModuleUnderAutoload");
+ rb_define_module_under(specs, "RubyUnderAutoload");
+}
+
+#ifdef __cplusplus
+}
+#endif