Update year range in copyright notice of binutils files
[deliverable/binutils-gdb.git] / gas / testsuite / gas / symver / symver.exp
CommitLineData
b3adc24a 1# Copyright (C) 2012-2020 Free Software Foundation, Inc.
5bf135a7
NC
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
5# the Free Software Foundation; either version 3 of the License, or
6# (at your option) any later version.
7#
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.
12#
13# You should have received a copy of the GNU General Public License
14# along with this program; if not, write to the Free Software
15# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
16
747e13a0
L
17#
18# symver tests
19#
20proc run_error_test { name opts } {
21 global srcdir subdir
22 set testname "symver $name"
23 set file $srcdir/$subdir/$name
24 gas_run ${name}.s $opts ">&dump.out"
eb22018c 25 if { [regexp_diff "dump.out" "${file}.l"] } then {
747e13a0
L
26 fail $testname
27 verbose "output is [file_contents "dump.out"]" 2
28 return
29 }
30 pass $testname
31}
32
33# symver is only supported by ELF targets.
017761ea 34if { [is_elf_format] } then {
747e13a0
L
35
36 if {[istarget "ia64-*"]} then {
37 return
38 }
39
40 if {[istarget "hppa*64*-*-*"]} then {
41 return
42 }
43
44 # not supported by D30V
45 if {[istarget "d30v-*-*"]} {
46 return
47 }
48
747e13a0
L
49 run_dump_test "symver0"
50 run_dump_test "symver1"
51 run_error_test "symver2" ""
52 run_error_test "symver3" ""
e206b66f
L
53 # We have to comment out symver4 and symver5, which check the
54 # missing version name, since some tests in ld/testsuite/ld-elfvers
55 # have no version names. We cannot flag an error for the missing
56 # version name.
57# run_error_test "symver4" ""
58# run_error_test "symver5" ""
747e13a0
L
59 run_error_test "symver6" ""
60}
This page took 1.061853 seconds and 4 git commands to generate.