import source from 1.3.40
[external/swig.git] / Examples / test-suite / cplusplus_throw.i
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 %{
9 #if defined(_MSC_VER)
10   #pragma warning(disable: 4290) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
11 #endif
12 %}
13
14 %nodefaultctor;
15
16 %inline %{
17
18 class Foo { };
19
20 class Bar {
21 public:
22   void baz() const { };
23   void foo() throw (Foo) { };
24   void bazfoo() const throw (int) { };
25 };
26
27 %}
28