aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp/operator.cc
diff options
context:
space:
mode:
authorSami Wagiaalla <swagiaal@redhat.com>2010-06-25 18:05:30 +0000
committerSami Wagiaalla <swagiaal@redhat.com>2010-06-25 18:05:30 +0000
commit099ef718e3aaecb6668e206fd9110ab57ae5cc45 (patch)
treeedd426a4c2056c5ee9a5b21c52859b668dcd0051 /gdb/testsuite/gdb.cp/operator.cc
parentc0cc4c83bd3d981e727be0984987911edd47b98c (diff)
downloadbinutils-099ef718e3aaecb6668e206fd9110ab57ae5cc45.zip
binutils-099ef718e3aaecb6668e206fd9110ab57ae5cc45.tar.gz
binutils-099ef718e3aaecb6668e206fd9110ab57ae5cc45.tar.bz2
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.
Diffstat (limited to 'gdb/testsuite/gdb.cp/operator.cc')
-rw-r--r--gdb/testsuite/gdb.cp/operator.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.cp/operator.cc b/gdb/testsuite/gdb.cp/operator.cc
index cc925a0..8431376 100644
--- a/gdb/testsuite/gdb.cp/operator.cc
+++ b/gdb/testsuite/gdb.cp/operator.cc
@@ -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;