Change class names in test code which clash with PHP reserved words
(Interface, Class, and Function - these are case insensitive reserved words in PHP). Fix lists of expected methods in rename_scope_runme.php to match those which we expect with PHP5. With this and the change above, this testcase now passes. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11545 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
54018f66a2
commit
d3809285a4
7 changed files with 34 additions and 34 deletions
|
|
@ -7,7 +7,7 @@
|
|||
enum Polarization { UnaryPolarization, BinaryPolarization };
|
||||
|
||||
template <Polarization P>
|
||||
struct Interface
|
||||
struct Interface_
|
||||
{
|
||||
};
|
||||
}
|
||||
|
|
@ -15,9 +15,9 @@
|
|||
|
||||
namespace oss
|
||||
{
|
||||
// Interface
|
||||
%template(Interface_UP) Interface<UnaryPolarization>;
|
||||
%template(Interface_BP) Interface<BinaryPolarization>;
|
||||
// Interface_
|
||||
%template(Interface_UP) Interface_<UnaryPolarization>;
|
||||
%template(Interface_BP) Interface_<BinaryPolarization>;
|
||||
|
||||
}
|
||||
%inline
|
||||
|
|
@ -27,7 +27,7 @@ namespace oss
|
|||
namespace interfaces
|
||||
{
|
||||
template <Polarization P>
|
||||
struct Natural : Interface<P>
|
||||
struct Natural : Interface_<P>
|
||||
{
|
||||
int test(void) { return 1; }
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue