diff options
author | John Darrington <john@darrington.wattle.id.au> | 2018-04-12 15:07:02 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2018-04-12 15:08:59 +0100 |
commit | 67f846b59b32f3d704c601669409c2584383fea9 (patch) | |
tree | f81ced14535cd14aa5ce69718ef1d174d7161431 /gas/testsuite | |
parent | 73a05be215ce8ccd7a6623f9a24d86223dd7d2f3 (diff) | |
download | gdb-67f846b59b32f3d704c601669409c2584383fea9.zip gdb-67f846b59b32f3d704c601669409c2584383fea9.tar.gz gdb-67f846b59b32f3d704c601669409c2584383fea9.tar.bz2 |
Stop the assembler from overwriting its output file.
* as.c (main): Fail if the output is the same as one of the input
files.
* testsuite/gas/all/gas.exp: Test the new feature.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/gas/all/gas.exp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gas/testsuite/gas/all/gas.exp b/gas/testsuite/gas/all/gas.exp index 0355a03..b3d662a 100644 --- a/gas/testsuite/gas/all/gas.exp +++ b/gas/testsuite/gas/all/gas.exp @@ -73,6 +73,8 @@ if { ![istarget alpha*-*-*vms*] gas_test_error "equiv1.s" "" ".equiv for symbol already set to another one" gas_test_error "equiv2.s" "" ".equiv for symbol already set to an expression" +gas_test_error "none.s" "-o $srcdir/$subdir/none.s" "Output file must be distinct from input" + # .equ works differently on some targets. case $target_triplet in { { hppa*-*-* } { } |