diff options
author | Sami Wagiaalla <swagiaal@redhat.com> | 2010-01-28 17:58:02 +0000 |
---|---|---|
committer | Sami Wagiaalla <swagiaal@redhat.com> | 2010-01-28 17:58:02 +0000 |
commit | df83a9bf8b0dc2e2553db096e6933a5be943cda6 (patch) | |
tree | 16383451442a298ad6d081fc696a655837386aea /gdb/testsuite/gdb.cp/nsrecurs.exp | |
parent | 1c4809636b0de9e160c8e711f82dabf66e0000a9 (diff) | |
download | gdb-df83a9bf8b0dc2e2553db096e6933a5be943cda6.zip gdb-df83a9bf8b0dc2e2553db096e6933a5be943cda6.tar.gz gdb-df83a9bf8b0dc2e2553db096e6933a5be943cda6.tar.bz2 |
2010-01-28 Sami Wagiaalla <swagiaal@redhat.com>
* gdb.cp/nsusing.exp: Added more tests.
* gdb.cp/nsrecurs.exp: Ditto.
* gdb.cp/nsusing.cc: Added test functions.
* gdb.cp/nsrecurs.cc: Ditto.
Diffstat (limited to 'gdb/testsuite/gdb.cp/nsrecurs.exp')
-rw-r--r-- | gdb/testsuite/gdb.cp/nsrecurs.exp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.cp/nsrecurs.exp b/gdb/testsuite/gdb.cp/nsrecurs.exp index 9939a9f..f884a97 100644 --- a/gdb/testsuite/gdb.cp/nsrecurs.exp +++ b/gdb/testsuite/gdb.cp/nsrecurs.exp @@ -13,8 +13,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -# Test recursive namespace lookup - if $tracelevel then { strace $tracelevel } @@ -25,7 +23,8 @@ set bug_id 0 set testfile nsrecurs set srcfile ${testfile}.cc set binfile ${objdir}/${subdir}/${testfile} -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug c++}] != "" } { +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" \ + "${binfile}" executable {debug c++}] != "" } { untested "Couldn't compile test program" return -1 } @@ -65,3 +64,13 @@ gdb_test "print dx" "= 99" # anonymous namespace imports. gdb_test "print xx" "= 999" + +############################################ +# Test printing using recursive namespace +# aliases. + +setup_kfail "gdb/10541" "*-*-*" +gdb_test "ptype G::GF" "= namespace F" + +setup_kfail "gdb/10541" "*-*-*" +gdb_test "print G::GF::FE::ex" "= 9999" |