summaryrefslogtreecommitdiff
path: root/ext/-test-/cxxanyargs/failure.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ext/-test-/cxxanyargs/failure.cpp')
-rw-r--r--ext/-test-/cxxanyargs/failure.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/-test-/cxxanyargs/failure.cpp b/ext/-test-/cxxanyargs/failure.cpp
new file mode 100644
index 0000000000..039beb1633
--- /dev/null
+++ b/ext/-test-/cxxanyargs/failure.cpp
@@ -0,0 +1,13 @@
+#include <ruby/ruby.h>
+
+static VALUE
+func_arg1(VALUE self, VALUE arg1)
+{
+ return arg1;
+}
+
+extern "C" void
+Init_failure(void)
+{
+ rb_define_method(rb_cObject, "arg1", func_arg1, 0);
+}