Extend php_namewarn_rename to act as a regression test for the warning about built-in function names used in %extend
This commit is contained in:
parent
5b957278a8
commit
9146164748
1 changed files with 10 additions and 0 deletions
|
|
@ -7,6 +7,11 @@
|
||||||
%warnfilter(SWIGWARN_PARSE_KEYWORD) Hello::empty();
|
%warnfilter(SWIGWARN_PARSE_KEYWORD) Hello::empty();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
%ignore prev::operator++;
|
||||||
|
%extend prev {
|
||||||
|
void next() { ++(*self); }
|
||||||
|
}
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
|
|
||||||
int Exception() { return 13; }
|
int Exception() { return 13; }
|
||||||
|
|
@ -26,4 +31,9 @@
|
||||||
void empty() {}
|
void empty() {}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct prev {
|
||||||
|
prev & operator++() { }
|
||||||
|
prev operator++(int) { }
|
||||||
|
};
|
||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue