]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.fortran/array-bounds-high.exp
gdb/fortran: Allow Flang MAIN_ in Fortran testing
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.fortran / array-bounds-high.exp
index 81e2f87b89f57d1ea381cf815ca550cec6d2de69..ba34dbc23e279fbd5db41905b0cef2090002f9c5 100644 (file)
@@ -20,13 +20,14 @@ if { [skip_fortran_tests] } { return -1 }
 
 set testfile "array-bounds-high"
 standard_testfile .f90
+load_lib fortran.exp
 
 if {[prepare_for_testing $testfile.exp $testfile $srcfile {f90 debug}]} {
     return -1
 }
 
-if {![runto MAIN__]} {
-    perror "Could not run to breakpoint `MAIN__'."
+if {![fortran_runto_main]} {
+    perror "Could not run to main."
     continue
 }