This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[RFA:] dg testsuite framework and test-case for sh, gas
- To: binutils at sourceware dot cygnus dot com
- Subject: [RFA:] dg testsuite framework and test-case for sh, gas
- From: Hans-Peter Nilsson <hp at bitrange dot com>
- Date: Fri, 24 Nov 2000 20:50:52 -0500 (EST)
Here's a little gas-testsuite-addition for sh, for the previously reported
bug.
Ok to commit?
* gas/sh/err.exp: New, framework for error-testing.
* gas/sh/err-1.s: New test.
*** /dev/null Tue Jan 1 05:00:00 1980
--- err.exp Sat Nov 25 02:44:11 2000
***************
*** 0 ****
--- 1,28 ----
+ # Copyright (C) 2000 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
+ # the Free Software Foundation; either version 2 of the License, or
+ # (at your option) any later version.
+ #
+ # This program is distributed in the hope that it will be useful,
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ # GNU General Public License for more details.
+ #
+ # You should have received a copy of the GNU General Public License
+ # along with this program; if not, write to the Free Software
+ # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ # Please email any bugs, comments, and/or additions to this file to:
+ # DejaGnu@cygnus.com
+
+ load_lib gas-dg.exp
+ dg-init
+
+ if [istarget sh-*-*] then {
+ dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/warn-*.s]] "" ""
+ dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/err-*.s]] "" ""
+ }
+
+ dg-finish
*** /dev/null Tue Jan 1 05:00:00 1980
--- err-1.s Sat Nov 25 02:15:51 2000
***************
*** 0 ****
--- 1,11 ----
+ ! { dg-do assemble }
+
+ ! Check that errors are emitted, with no crashes, when an external symbol
+ ! is referenced in a conditional or unconditional branch.
+ start:
+ nop
+ bt externsym1 ! { dg-error "undefined symbol" }
+ nop
+ bra externsym2 ! { dg-error "undefined symbol" }
+ nop
+
brgds, H-P