A C++ class called "Exception" could shadow the built-in one before, leading to compilation errors in the exception handling code. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12318 626c5289-ae23-0410-ae9c-e8d60b6d4f22
15 lines
319 B
OpenEdge ABL
15 lines
319 B
OpenEdge ABL
// Tests if exception handling still works in the presence of a wrapped C++
|
|
// class called »Exception«, which could shadow the built-in Exception class.
|
|
%module d_exception_name
|
|
|
|
%inline %{
|
|
class Exception {
|
|
Exception(int i) {}
|
|
};
|
|
|
|
class Foo {
|
|
~Foo() {}
|
|
public:
|
|
void bar(Exception *e) {}
|
|
};
|
|
%}
|