Disable only part of cpp11_alternate_function_syntax test
Instead of skipping it entirely, just disable the part using member function pointers, which are not supported in C backend.
This commit is contained in:
parent
b5a8ccffa3
commit
3da85eb4c5
2 changed files with 4 additions and 1 deletions
|
|
@ -95,7 +95,6 @@ FAILING_CPP_TESTS := \
|
||||||
virtual_poly \
|
virtual_poly \
|
||||||
|
|
||||||
FAILING_CPP11_TESTS := \
|
FAILING_CPP11_TESTS := \
|
||||||
cpp11_alternate_function_syntax \
|
|
||||||
cpp11_ref_qualifiers \
|
cpp11_ref_qualifiers \
|
||||||
cpp11_ref_qualifiers_typemaps \
|
cpp11_ref_qualifiers_typemaps \
|
||||||
cpp11_result_of \
|
cpp11_result_of \
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,10 @@ struct SomeStruct {
|
||||||
auto addAlternateConst(int x, int y) const -> int;
|
auto addAlternateConst(int x, int y) const -> int;
|
||||||
auto addAlternateNoExcept(int x, int y) noexcept -> int;
|
auto addAlternateNoExcept(int x, int y) noexcept -> int;
|
||||||
auto addAlternateConstNoExcept(int x, int y) const noexcept -> int;
|
auto addAlternateConstNoExcept(int x, int y) const noexcept -> int;
|
||||||
|
#ifndef SWIGC
|
||||||
auto addAlternateMemberPtrParm(int x, int (SomeStruct::*mp)(int, int)) -> int;
|
auto addAlternateMemberPtrParm(int x, int (SomeStruct::*mp)(int, int)) -> int;
|
||||||
auto addAlternateMemberPtrConstParm(int x, int (SomeStruct::*mp)(int, int) const) const -> int;
|
auto addAlternateMemberPtrConstParm(int x, int (SomeStruct::*mp)(int, int) const) const -> int;
|
||||||
|
#endif // !SWIGC
|
||||||
|
|
||||||
virtual auto addFinal(int x, int y) const noexcept -> int final { return x + y; }
|
virtual auto addFinal(int x, int y) const noexcept -> int final { return x + y; }
|
||||||
virtual ~SomeStruct() = default;
|
virtual ~SomeStruct() = default;
|
||||||
|
|
@ -21,11 +23,13 @@ auto SomeStruct::addAlternate(int x, int y) -> int { return x + y; }
|
||||||
auto SomeStruct::addAlternateConst(int x, int y) const -> int { return x + y; }
|
auto SomeStruct::addAlternateConst(int x, int y) const -> int { return x + y; }
|
||||||
auto SomeStruct::addAlternateNoExcept(int x, int y) noexcept -> int { return x + y; }
|
auto SomeStruct::addAlternateNoExcept(int x, int y) noexcept -> int { return x + y; }
|
||||||
auto SomeStruct::addAlternateConstNoExcept(int x, int y) const noexcept -> int { return x + y; }
|
auto SomeStruct::addAlternateConstNoExcept(int x, int y) const noexcept -> int { return x + y; }
|
||||||
|
#ifndef SWIGC
|
||||||
auto SomeStruct::addAlternateMemberPtrParm(int x, int (SomeStruct::*mp)(int, int)) -> int {
|
auto SomeStruct::addAlternateMemberPtrParm(int x, int (SomeStruct::*mp)(int, int)) -> int {
|
||||||
return 100*x + (this->*mp)(x, x);
|
return 100*x + (this->*mp)(x, x);
|
||||||
}
|
}
|
||||||
auto SomeStruct::addAlternateMemberPtrConstParm(int x, int (SomeStruct::*mp)(int, int) const) const -> int {
|
auto SomeStruct::addAlternateMemberPtrConstParm(int x, int (SomeStruct::*mp)(int, int) const) const -> int {
|
||||||
return 1000*x + (this->*mp)(x, x);
|
return 1000*x + (this->*mp)(x, x);
|
||||||
}
|
}
|
||||||
|
#endif // !SWIGC
|
||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue