* gdb.cp/namespace.exp (print C::OtherFileClass::cOtherFileClassVar)
(print ::C::OtherFileClass::cOtherFileClassVar): Remove KFAIL for
c++/11702.
+2010-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * gdb.cp/namespace.exp (print C::OtherFileClass::cOtherFileClassVar)
+ (print ::C::OtherFileClass::cOtherFileClassVar): Remove KFAIL for
+ c++/11702.
+
2010-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
Doug Evans <dje@google.com>
2010-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
Doug Evans <dje@google.com>
setup_xfail *-*-*
}
gdb_test "whatis ::C::OtherFileClass::cOtherFileClassType" "type = short"
setup_xfail *-*-*
}
gdb_test "whatis ::C::OtherFileClass::cOtherFileClassType" "type = short"
-
-set test "print C::OtherFileClass::cOtherFileClassVar"
-gdb_test_multiple $test $test {
- -re "\\$\[0-9\].* = 318\r\n$gdb_prompt $" {
- pass $test
- }
- -re "static field cOtherFileClassVar has been optimized out\r\n$gdb_prompt $" {
- setup_kfail "c++/11702" "*-*-*"
- fail $test
- }
-}
+gdb_test "print C::OtherFileClass::cOtherFileClassVar" " = 318"
# FSF GCC <=4.4 creates unqualified DIE "cOtherFileClassVar" ignoring the
# namespace the same way older GDB did.
# FSF GCC <=4.4 creates unqualified DIE "cOtherFileClassVar" ignoring the
# namespace the same way older GDB did.
-re "No symbol \"cOtherFileClassVar\" in current context\\.\r\n$gdb_prompt $" {
pass $test
-re "No symbol \"cOtherFileClassVar\" in current context\\.\r\n$gdb_prompt $" {
pass $test
- gdb_test_multiple $test2 $test2 {
- -re "\\$\[0-9\].* = 318\r\n$gdb_prompt $" {
- pass $test2
- }
- -re "static field cOtherFileClassVar has been optimized out\r\n$gdb_prompt $" {
- setup_kfail "c++/11702" "*-*-*"
- fail $test2
- }
- }
-
+ gdb_test $test2 " = 318"
}
-re "\\$\[0-9\].* = 318\r\n$gdb_prompt $" {
if {[test_compiler_info {gcc-[0-3]-*}]
}
-re "\\$\[0-9\].* = 318\r\n$gdb_prompt $" {
if {[test_compiler_info {gcc-[0-3]-*}]