gdb_test_no_output "set language c++"
+set psymtabs_p [psymtabs_p]
+
# Verify that the partial symtab for the unit importing the partial unit does
# not contain the static partial symbol int, which is defined in the partial
# unit. Test-case for PR25646.
-gdb_test "main print psymbols" \
- [multi_line \
- " Depends on 1 other partial symtabs\." \
- "\[^\r\n\]*" \
- " Global partial symbols:" \
- " `main', function, $hex" \
- "" \
- ".*"] \
- "no static partial symbols in importing unit"
-
+set test "no static partial symbols in importing unit"
+if { $psymtabs_p } {
+ gdb_test "main print psymbols" \
+ [multi_line \
+ " Depends on 1 other partial symtabs\." \
+ "\[^\r\n\]*" \
+ " Global partial symbols:" \
+ " `main', function, $hex" \
+ "" \
+ ".*"] \
+ $test
+} else {
+ unsupported $test
+}
# Sanity check
gdb_test "ptype main" "= int \\(void\\)"