/tags/ttn-post-libtool-1-4-3-upgrade/SWIG/Examples/test-suite/cplusplus_throw.i
Swig | 22 lines | 11 code | 7 blank | 4 comment | 0 complexity | 877ee8543b0d5da5a31143daf27ac58d MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
1/* This interface file checks whether the SWIG parses the throw
2 directive in combination with the const directive. Bug reported by
3 Scott B. Drummonds, 08 June 2001.
4*/
5
6%module cplusplus_throw
7
8%pragma no_default
9
10%inline %{
11
12class Foo { };
13
14class Bar {
15public:
16 void baz() const { };
17 void foo() throw (Foo) { };
18 void bazfoo() const throw (int) { };
19};
20
21%}
22