diff options
author | Jan Beulich <jbeulich@novell.com> | 2017-02-22 10:37:52 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2017-02-22 10:37:52 +0100 |
commit | b0c53498a383cd5915786b0c321da48054e122ef (patch) | |
tree | e9af6ba585f8ef98d7dcd895dbd66566da09bb42 /gas/testsuite | |
parent | 11648de5a91658326748dea1e4965559e9bd7a0f (diff) | |
download | gdb-b0c53498a383cd5915786b0c321da48054e122ef.zip gdb-b0c53498a383cd5915786b0c321da48054e122ef.tar.gz gdb-b0c53498a383cd5915786b0c321da48054e122ef.tar.bz2 |
gas: require an operand to .startof.()/.sizeof.()
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/gas/all/err-sizeof.s | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gas/testsuite/gas/all/err-sizeof.s b/gas/testsuite/gas/all/err-sizeof.s new file mode 100644 index 0000000..4ddb5bd --- /dev/null +++ b/gas/testsuite/gas/all/err-sizeof.s @@ -0,0 +1,21 @@ +;# .sizeof. and .startof. operator diagnostics +;# { dg-do assemble } + .long .sizeof.(a b) ;# { dg-error "Error: syntax error" } + .long .startof.(x y) ;# { dg-error "Error: syntax error" } + .long .sizeof.(a+b) ;# { dg-error "Error: syntax error" } + .long .startof.(x-y) ;# { dg-error "Error: syntax error" } + .long .sizeof.("a+b") + .long .startof.("x-y") + .long .sizeof.() ;# { dg-error "Error: expected symbol name" } + .long .startof.() ;# { dg-error "Error: expected symbol name" } +;# We don't really care about these, but I didn't find a way to discard +;# them, and I also don't want to use dg-excess-errors here. +;# { dg-error "junk at end" "" { target *-*-* } 3 } +;# { dg-error "junk at end" "junk" { target *-*-* } 4 } +;# { dg-error "junk at end" "junk" { target *-*-* } 5 } +;# { dg-error "UND" "undefined" { target *-*-* } 5 } +;# { dg-error "junk at end" "junk" { target *-*-* } 6 } +;# { dg-error "UND" "undefined" { target *-*-* } 6 } +;# { dg-error "too complex" "too complex" { target powerpc*-*-* } 6 } +;# { dg-warning "zero assumed" "missing" { target *-*-* } 9 } +;# { dg-warning "zero assumed" "missing" { target *-*-* } 10 } |