-# Copyright 2008-2012 Free Software Foundation, Inc.
+# Copyright 2008-2020 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
load_lib "ada.exp"
-set testdir "array_bounds"
-set testfile "${testdir}/bar"
-set srcfile ${srcdir}/${subdir}/${testfile}.adb
-set binfile ${objdir}/${subdir}/${testfile}
+standard_ada_testfile bar
-file mkdir ${objdir}/${subdir}/${testdir}
if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
return -1
}
}
gdb_test "print itable'first" \
- "= 2" \
- "print itable'first"
+ "= 2"
gdb_test "print itable'last" \
- "= 5" \
- "print itable'last"
+ "= 5"
gdb_test "print table'first" \
- "= zero" \
- "print table'first"
+ "= zero"
gdb_test "print table'last" \
- "= two" \
- "print table'last"
-
+ "= two"