]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/testsuite/gdb.ada/null_record.exp
Update copyright year range in header of all files managed by GDB
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.ada / null_record.exp
CommitLineData
213516ef 1# Copyright 2004-2023 Free Software Foundation, Inc.
d40d2c92
JB
2#
3# This program is free software; you can redistribute it and/or modify
4# it under the terms of the GNU General Public License as published by
e22f8b7c 5# the Free Software Foundation; either version 3 of the License, or
d40d2c92 6# (at your option) any later version.
e22f8b7c 7#
d40d2c92
JB
8# This program is distributed in the hope that it will be useful,
9# but WITHOUT ANY WARRANTY; without even the implied warranty of
10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11# GNU General Public License for more details.
e22f8b7c 12#
d40d2c92 13# You should have received a copy of the GNU General Public License
e22f8b7c 14# along with this program. If not, see <http://www.gnu.org/licenses/>.
d40d2c92 15
f0aaee49
JB
16load_lib "ada.exp"
17
ec3c07fc
NS
18if { [skip_ada_tests] } { return -1 }
19
8223e12c 20standard_ada_testfile null_record
f0aaee49 21
ec3c07fc
NS
22if {[gdb_compile_ada "${srcfile}" "${binfile}" executable {debug}] != ""} {
23 return -1
f0aaee49
JB
24}
25
09050809 26clean_restart ${testfile}
f0aaee49 27
8ed5dd9e
JB
28set bp_location [gdb_get_line_number "START" ${testdir}/null_record.adb]
29runto "null_record.adb:$bp_location"
f0aaee49
JB
30
31gdb_test "ptype empty" \
32 "type = record null; end record" \
33 "ptype on null record"