Fix using declarations combined with using directives with forward class

references.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13502 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2012-08-04 20:23:07 +00:00
commit 6e6ce16e4e
11 changed files with 388 additions and 16 deletions

View file

@ -0,0 +1,26 @@
import namespace_forward_declaration.*;
public class namespace_forward_declaration_runme {
static {
try {
System.loadLibrary("namespace_forward_declaration");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. See the chapter on Dynamic Linking Problems in the SWIG Java documentation for help.\n" + e);
System.exit(1);
}
}
public static void main(String argv[]) {
XXX xxx = new XXX();
namespace_forward_declaration.testXXX1(xxx);
namespace_forward_declaration.testXXX2(xxx);
namespace_forward_declaration.testXXX3(xxx);
YYY yyy = new YYY();
namespace_forward_declaration.testYYY1(yyy);
namespace_forward_declaration.testYYY2(yyy);
namespace_forward_declaration.testYYY3(yyy);
}
}