]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/testsuite/gdb.ada/null_record.exp
* gdb.ada (bar.ads, bar.adb, null_record.adb): New files.
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.ada / null_record.exp
CommitLineData
f0aaee49
JB
1if $tracelevel then {
2 strace $tracelevel
3}
4
5load_lib "ada.exp"
6
7set testfile "null_record"
8set srcfile ${testfile}.adb
9set binfile ${objdir}/${subdir}/${testfile}
10
11if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
12 return -1
13}
14
15gdb_exit
16gdb_start
17gdb_reinitialize_dir $srcdir/$subdir
18gdb_load ${binfile}
19
20gdb_test "begin" \
21 "Breakpoint \[0-9\]+ at .*null_record.adb.*" \
22 "begin"
23
24gdb_test "ptype empty" \
25 "type = record null; end record" \
26 "ptype on null record"