aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/cplusplus_throw.i
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/cplusplus_throw.i')
-rw-r--r--Examples/test-suite/cplusplus_throw.i22
1 files changed, 22 insertions, 0 deletions
diff --git a/Examples/test-suite/cplusplus_throw.i b/Examples/test-suite/cplusplus_throw.i
new file mode 100644
index 000000000..268ddc6d0
--- /dev/null
+++ b/Examples/test-suite/cplusplus_throw.i
@@ -0,0 +1,22 @@
+/* This interface file checks whether the SWIG parses the throw
+ directive in combination with the const directive. Bug reported by
+ Scott B. Drummonds, 08 June 2001.
+*/
+
+%module cplusplus_throw
+
+%pragma no_default
+
+%inline %{
+
+class Foo { };
+
+class Bar {
+public:
+ void baz() const { };
+ void foo() throw (Foo) { };
+ void bazfoo() const throw (int) { };
+};
+
+%}
+