mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
Added import loop test.
2010-06-25 Sami Wagiaalla <swagiaal@redhat.com> * gdb.cp/operator.cc: Created an import loop. * gdb.cp/operator.exp: Added testcase for import loop.
This commit is contained in:
parent
c0cc4c83bd
commit
099ef718e3
@ -1,3 +1,8 @@
|
||||
2010-06-25 Sami Wagiaalla <swagiaal@redhat.com>
|
||||
|
||||
* gdb.cp/operator.cc: Created an import loop.
|
||||
* gdb.cp/operator.exp: Added testcase for import loop.
|
||||
|
||||
2010-06-25 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||
|
||||
Test PR python/11407.
|
||||
|
@ -157,6 +157,22 @@ using namespace N;
|
||||
|
||||
//------------------
|
||||
|
||||
namespace O
|
||||
{
|
||||
namespace P
|
||||
{
|
||||
using namespace ::O;
|
||||
}
|
||||
using namespace P;
|
||||
}
|
||||
|
||||
using namespace O;
|
||||
|
||||
class test { };
|
||||
test x;
|
||||
|
||||
//------------------
|
||||
|
||||
int main ()
|
||||
{
|
||||
A a;
|
||||
|
@ -56,3 +56,6 @@ gdb_test "p j == 1" "Cannot resolve function operator== to any overloaded instan
|
||||
|
||||
# Test that indirectly imported operators work
|
||||
gdb_test "p l == 1" "= 88"
|
||||
|
||||
# Test that we don't fall into an import loop
|
||||
gdb_test {p x[0]} {No symbol "operator\[\]" in current context.}
|
||||
|
Loading…
Reference in New Issue
Block a user