diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-03-29 12:19:10 +0100 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2024-04-03 19:39:08 +0000 |
commit | d9f7604e8e8fadb4e10542d4c5f0004b19de2d96 (patch) | |
tree | 56190df8eb2ef0ee3c8212eede77648d2d9d1351 /gcc | |
parent | e36c3ece68cecba3170ab2d35de6e0a0c8bac40e (diff) | |
download | gcc-d9f7604e8e8fadb4e10542d4c5f0004b19de2d96.zip gcc-d9f7604e8e8fadb4e10542d4c5f0004b19de2d96.tar.gz gcc-d9f7604e8e8fadb4e10542d4c5f0004b19de2d96.tar.bz2 |
raw-strings: Remove dg-excess-error directive
The error is actually expected and uses the correct location.
gcc/testsuite/ChangeLog:
* rust/compile/raw-byte-string-loc.rs: Use dg-error instead of
dg-excess-error.
* rust/compile/raw-string-loc.rs: Likewise.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/rust/compile/raw-byte-string-loc.rs | 2 | ||||
-rw-r--r-- | gcc/testsuite/rust/compile/raw-string-loc.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/rust/compile/raw-byte-string-loc.rs b/gcc/testsuite/rust/compile/raw-byte-string-loc.rs index f37d3f9..b71b6e5 100644 --- a/gcc/testsuite/rust/compile/raw-byte-string-loc.rs +++ b/gcc/testsuite/rust/compile/raw-byte-string-loc.rs @@ -3,4 +3,4 @@ const X: &'static u8 = br#"12 BREAK // { dg-error "unrecognised token" "" { target *-*-* } .-1 } -// { dg-excess-errors "error 'failed to parse item' does not have location" } +// { dg-error "failed to parse item" "" { target *-*-* } .-2 } diff --git a/gcc/testsuite/rust/compile/raw-string-loc.rs b/gcc/testsuite/rust/compile/raw-string-loc.rs index 7097751..26331ea 100644 --- a/gcc/testsuite/rust/compile/raw-string-loc.rs +++ b/gcc/testsuite/rust/compile/raw-string-loc.rs @@ -3,4 +3,4 @@ const X: &'static str = r#"12 BREAK // { dg-error "unrecognised token" "" { target *-*-* } .-1 } -// { dg-excess-errors "error 'failed to parse item' does not have location" } +// { dg-error "failed to parse item" "" { target *-*-* } .-2 } |