aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/c_delete_function.i
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/c_delete_function.i')
-rw-r--r--Examples/test-suite/c_delete_function.i7
1 files changed, 7 insertions, 0 deletions
diff --git a/Examples/test-suite/c_delete_function.i b/Examples/test-suite/c_delete_function.i
new file mode 100644
index 000000000..e1fba7495
--- /dev/null
+++ b/Examples/test-suite/c_delete_function.i
@@ -0,0 +1,7 @@
+%module c_delete_function
+
+/* check C++ delete keyword is okay in C wrappers */
+
+%inline %{
+double delete(double d) { return d; }
+%}