diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-07-02 15:13:13 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-07-02 15:13:13 +0000 |
commit | e17476d75f951a9a72818aca1059c624b7b6ead2 (patch) | |
tree | 71ceb2a8505e51ced2cced1b29d36e379b1ed07b /gdb/testsuite/gdb.cp/temargs.exp | |
parent | 46fc714c1b4ed78d97708bf570e713d0b9a02e8b (diff) | |
download | gdb-e17476d75f951a9a72818aca1059c624b7b6ead2.zip gdb-e17476d75f951a9a72818aca1059c624b7b6ead2.tar.gz gdb-e17476d75f951a9a72818aca1059c624b7b6ead2.tar.bz2 |
gdb/testsuite/
* gdb.cp/m-static.exp: Call get_compiler_info.
(static const int initialized nowhere): Call setup_xfail for gcc <= 4.4.
* gdb.cp/pr9167.exp (p b): Likewise.
* gdb.cp/temargs.exp: Do not set have_pr_45024_fixed for gcc 4.6.
(test value of P in inner_m, test type of Z in inner_m): Call
setup_xfail for gcc <= 4.5.
Diffstat (limited to 'gdb/testsuite/gdb.cp/temargs.exp')
-rw-r--r-- | gdb/testsuite/gdb.cp/temargs.exp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.cp/temargs.exp b/gdb/testsuite/gdb.cp/temargs.exp index 74019bd..d094c5a 100644 --- a/gdb/testsuite/gdb.cp/temargs.exp +++ b/gdb/testsuite/gdb.cp/temargs.exp @@ -51,8 +51,6 @@ if {[test_compiler_info {gcc-[0-3]-*}] } elseif {[test_compiler_info {gcc-4-5-*}]} { set have_pr_41736_fixed 0 set have_pr_45024_fixed 0 -} elseif {[test_compiler_info {gcc-4-6-*}]} { - set have_pr_45024_fixed 0 } set line [gdb_get_line_number "Breakpoint 1" $srcfile] @@ -110,13 +108,23 @@ gdb_test "ptype T" "long" "test type of T in inner_m" if {!$have_pr_45024_fixed} { setup_xfail *-*-* } gdb_test "print I" " = 47" "test value of I in inner_m" -if $have_older_template_gcc { setup_xfail "*-*-*" } +if $have_older_template_gcc { setup_xfail "*-*-*" +} elseif {[test_compiler_info {gcc-[0-3]-*}] + || [test_compiler_info {gcc-4-[0-5]-*}]} { + # gcc-4.5.x still does not emit inner DW_TAG_structure_type. + setup_xfail "*-*-*" +} gdb_test "print P == &a_global" " = true" "test value of P in inner_m" if {!$have_pr_41736_fixed} { setup_xfail *-*-* } gdb_test "print MP" "&S::f" "test value of MP in inner_m" -if $have_older_template_gcc { setup_xfail "*-*-*" } +if $have_older_template_gcc { setup_xfail "*-*-*" +} elseif {[test_compiler_info {gcc-[0-3]-*}] + || [test_compiler_info {gcc-4-[0-5]-*}]} { + # gcc-4.5.x still does not emit outer DW_TAG_structure_type. + setup_xfail "*-*-*" +} gdb_test "whatis Z" "float" "test type of Z in inner_m" # |