git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2008-maciekd@10618 626c5289-ae23-0410-ae9c-e8d60b6d4f22
21 lines
342 B
C
21 lines
342 B
C
#include <stdio.h>
|
|
|
|
#include "example_proxy.h"
|
|
|
|
void test(Bar * bar) {
|
|
printf("value of x is %d\n", Bar_get(bar));
|
|
}
|
|
|
|
int main(int argc, char** argv) {
|
|
Bar* bar = new_Bar();
|
|
test(bar);
|
|
foo_by_val(bar);
|
|
test(bar);
|
|
foo_by_ptr(bar);
|
|
test(bar);
|
|
foo_by_ref(bar);
|
|
test(bar);
|
|
delete_Bar(bar);
|
|
return 0;
|
|
}
|
|
|