/trunk/Examples/test-suite/d_exception_name.i
Swig | 15 lines | 13 code | 2 blank | 0 comment | 0 complexity | ea61633b70d3eee00bb2304dd645fddb MD5 | raw file
1// Tests if exception handling still works in the presence of a wrapped C++ 2// class called »Exception«, which could shadow the built-in Exception class. 3%module d_exception_name 4 5%inline %{ 6 class Exception { 7 Exception(int i) {} 8 }; 9 10 class Foo { 11 ~Foo() {} 12 public: 13 void bar(Exception *e) {} 14 }; 15%}