# Trigger expansion of symtab not containing main.
gdb_test "ptype foo" "^type = int \\(void\\)"
+ # Look for non-existent function.
+ gdb_test "ptype foobar" "^No symbol \"foobar\" in current context\\."
+
check_cache_stats 0 0
}
}
# Trigger expansion of symtab not containing main.
gdb_test "ptype foo" "^type = int \\(void\\)"
+ # Look for non-existent function.
+ gdb_test "ptype foobar" "^No symbol \"foobar\" in current context\\."
+
if { $expecting_index_cache_use } {
check_cache_stats 0 1
} else {
# Trigger expansion of symtab not containing main.
gdb_test "ptype foo" "^type = int \\(void\\)"
+ # Look for non-existent function.
+ gdb_test "ptype foobar" "^No symbol \"foobar\" in current context\\."
+
if { $expecting_index_cache_use } {
check_cache_stats 1 0
} else {