]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gas/testsuite/gas/vtable/vtable.exp
* config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
[thirdparty/binutils-gdb.git] / gas / testsuite / gas / vtable / vtable.exp
1 #
2 # vtable tests
3 #
4 proc run_list_test { name opts } {
5 global srcdir subdir
6 set testname "vtable $name"
7 set file $srcdir/$subdir/$name
8 gas_run ${name}.s $opts ">&dump.out"
9 if { [regexp_diff "dump.out" "${file}.l"] } then {
10 fail $testname
11 verbose "output is [file_contents "dump.out"]" 2
12 return
13 }
14 pass $testname
15 }
16
17 # Vtable bits are only supported by ELF targets.
18 if {[istarget "*-*-elf*"] || [istarget "*-*-linux*"]} then {
19
20 # start-sanitize-sky
21 if {[istarget "dvp-*-*"]} then {
22 return
23 }
24 # end-sanitize-sky
25
26 run_dump_test "inherit0"
27 run_list_test "inherit1" "-al"
28
29 # The vtable entry results are different on Rel and Rela targets.
30 if {[istarget "i*86-*-*"] || [istarget "mips*-*-*"]} then {
31
32 run_dump_test "entry0"
33
34 } else {
35
36 run_dump_test "entry1"
37
38 }
39 }