committed patch for bug SWIG-1937031 ; moved operator_overload_break back to working tests

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10367 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Jason Stewart 2008-04-08 04:04:37 +00:00
commit 5d625e950d
2 changed files with 7 additions and 1 deletions

View file

@ -51,7 +51,6 @@ CPP_TEST_BROKEN += \
extend_variable \
namespace_union \
nested_comment \
operator_overload_break \
overload_complicated \
template_default_pointer \
template_expr
@ -208,6 +207,7 @@ CPP_TEST_CASES += \
newobject1 \
ordering \
operator_overload \
operator_overload_break \
overload_copy \
overload_extend \
overload_rename \

View file

@ -1,3 +1,7 @@
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
*/
/* ----------------------------------------------------------------------------
* See the LICENSE file for information on copyright, usage and redistribution
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
@ -1200,6 +1204,8 @@ public:
fprintf(stderr,"Unknown operator: %s\n", name);
}
}
Printv(pm, tab4,
"\"=\" => sub { my $class = ref($_[0]); $class->new($_[0]) },\n", NIL);
Printv(pm, tab4, "\"fallback\" => 1;\n", NIL);
}
// make use strict happy