Fix abstract_typedef C test code
Don't refer to the typedef name (especially with a typo in it...), it is not supposed to be exported. Also fix the write() method call: use the right class for it and pass it the correct arguments.
This commit is contained in:
parent
e934c51425
commit
b062a63cd1
2 changed files with 2 additions and 6 deletions
|
|
@ -45,7 +45,6 @@ FAILING_C_TESTS := \
|
||||||
unions \
|
unions \
|
||||||
|
|
||||||
FAILING_CPP_TESTS := \
|
FAILING_CPP_TESTS := \
|
||||||
abstract_typedef \
|
|
||||||
abstract_typedef2 \
|
abstract_typedef2 \
|
||||||
anonymous_bitfield \
|
anonymous_bitfield \
|
||||||
apply_signed_char \
|
apply_signed_char \
|
||||||
|
|
|
||||||
|
|
@ -4,15 +4,12 @@
|
||||||
|
|
||||||
int main(int argc, const char *argv[]) {
|
int main(int argc, const char *argv[]) {
|
||||||
Engine *e = new_Engine();
|
Engine *e = new_Engine();
|
||||||
PerseEngine *pe = new_PersEngine();
|
|
||||||
A *a = new_A();
|
A *a = new_A();
|
||||||
|
|
||||||
assert(A_write(e) == true);
|
assert(AbstractBaseClass_write(a, e) == true);
|
||||||
assert(A_write(pe) == true);
|
|
||||||
|
|
||||||
delete_A(a);
|
delete_A(a);
|
||||||
delete_PerseEngine(pe);
|
|
||||||
delete_Engine(e);
|
delete_Engine(e);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue