This commit updates gdb.base/nested-subp[1-3].exp to determine
whether whether nested functions are supported using the function
support_nested_function_tests.
gdb/testsuite/ChangeLog:
	* gdb.base/nested-subp1.exp: Use support_nested_function_tests.
	* gdb.base/nested-subp2.exp: Likewise.
	* gdb.base/nested-subp3.exp: Likewise.
+2020-04-20  Gary Benson <gbenson@redhat.com>
+
+       * gdb.base/nested-subp1.exp: Use support_nested_function_tests.
+       * gdb.base/nested-subp2.exp: Likewise.
+       * gdb.base/nested-subp3.exp: Likewise.
+
 2020-04-20  Gary Benson <gbenson@redhat.com>
 
        * gdb.base/nested-subp1.exp: Disable test when using clang.
 
 
 set testcase "nested-subp1"
 
-get_compiler_info
-if { [test_compiler_info "clang-*"] } {
+if ![support_nested_function_tests] {
     untested "compiler does not support nested functions"
     return -1
 }
 
 
 set testcase "nested-subp2"
 
-get_compiler_info
-if { [test_compiler_info "clang-*"] } {
+if ![support_nested_function_tests] {
     untested "compiler does not support nested functions"
     return -1
 }
 
 
 set testcase "nested-subp3"
 
-get_compiler_info
-if { [test_compiler_info "clang-*"] } {
+if ![support_nested_function_tests] {
     untested "compiler does not support nested functions"
     return -1
 }