aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/explicit.i
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/explicit.i')
-rw-r--r--Examples/test-suite/explicit.i15
1 files changed, 15 insertions, 0 deletions
diff --git a/Examples/test-suite/explicit.i b/Examples/test-suite/explicit.i
new file mode 100644
index 000000000..738dffc41
--- /dev/null
+++ b/Examples/test-suite/explicit.i
@@ -0,0 +1,15 @@
+/* Swig 1.3.6 fails to understand the "explicit" keyword.
+ SF Bug #445233, reported by Krzysztof Kozminski
+ <kozminski@users.sf.net>.
+*/
+
+%module "explicit"
+
+%inline %{
+
+class A {
+ public:
+ explicit A(int) {};
+};
+
+%}