swig/Examples/test-suite/c/abstract_virtual_runme.c
Vadim Zeitlin bda731cd8f Change naming convention for wrapped ctors and dtor
Use Foo_{new,delete}() instead of {new,delete}_Foo() to ensure that all
methods of the class Foo start with the corresponding prefix.
2016-09-15 01:27:40 +02:00

18 lines
295 B
C

#include "abstract_virtual/abstract_virtual_wrap.h"
#include <assert.h>
int main(int argc, const char *argv[]) {
B *b = B_new();
D *d = D_new();
E *e = E_new();
assert(B_foo(b) == 0);
assert(D_foo(d) == 0);
assert(E_foo(e) == 0);
B_delete(b);
D_delete(d);
E_delete(e);
return 0;
}