Remove unnecessary Identifier redefined warning when a using statement redefines a symbol. Behaviour is now like a duplicate typedef of the same symbol.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12826 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
da82c2fef7
commit
fbd6d780b7
3 changed files with 30 additions and 4 deletions
|
|
@ -287,6 +287,7 @@ CPP_TEST_CASES += \
|
|||
protected_rename \
|
||||
pure_virtual \
|
||||
redefined \
|
||||
redefined_not \
|
||||
refcount \
|
||||
reference_global_vars \
|
||||
register_par \
|
||||
|
|
|
|||
13
Examples/test-suite/redefined_not.i
Normal file
13
Examples/test-suite/redefined_not.i
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
%module redefined_not
|
||||
|
||||
// These should not emit an Identifer redefined warning
|
||||
%inline %{
|
||||
typedef unsigned int size_t;
|
||||
namespace std {
|
||||
using ::size_t;
|
||||
}
|
||||
using std::size_t;
|
||||
typedef unsigned int size_t;
|
||||
using std::size_t;
|
||||
%}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue