swig/Examples/test-suite/c/abstract_access_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

12 lines
184 B
C

#include "abstract_access/abstract_access_wrap.h"
#include <assert.h>
int main(int argc, const char *argv[]) {
D *d = D_new();
assert(D_do_x(d) == 1);
D_delete(d);
return 0;
}