Added test case for a forward declaration in a typedef with the same
name
This commit is contained in:
parent
717b7866d4
commit
6b2bcfed0b
3 changed files with 33 additions and 0 deletions
|
|
@ -0,0 +1,22 @@
|
|||
|
||||
import typedef_classforward_same_name.*;
|
||||
|
||||
public class typedef_classforward_same_name_runme {
|
||||
|
||||
static {
|
||||
try {
|
||||
System.loadLibrary("typedef_classforward_same_name");
|
||||
} 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[]) {
|
||||
Foo foo = new Foo();
|
||||
foo.setX(5);
|
||||
if (typedef_classforward_same_name.extract(foo) == 5) {
|
||||
// All good!
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue