From: "lenny.chiadmi-delage" <[email protected]>

Adds test of issue 3904 and fix test of the issue 3874 to follows rust
1.49 behavior.

Fixes GCC-Rust/gccrs#3904

gcc/testsuite/ChangeLog:

        * rust/compile/issue-3874.rs: Fixes test.
        * rust/compile/issue-3904.rs: New test.

Signed-off-by: lenny.chiadmi-delage <[email protected]>
---
This change was merged into the gccrs repository and is posted here for
upstream visibility and potential drive-by review, as requested by GCC
release managers.
Each commit email contains a link to its details on github from where you can
find the Pull-Request and associated discussions.


Commit on github: 
https://github.com/Rust-GCC/gccrs/commit/0d89970b7f65bebd5d8409e9614a881757dbf5ba
The commit is not linked to any pull-request

 gcc/testsuite/rust/compile/issue-3874.rs | 3 +--
 gcc/testsuite/rust/compile/issue-3904.rs | 1 +
 2 files changed, 2 insertions(+), 2 deletions(-)
 create mode 100644 gcc/testsuite/rust/compile/issue-3904.rs

diff --git a/gcc/testsuite/rust/compile/issue-3874.rs 
b/gcc/testsuite/rust/compile/issue-3874.rs
index ebce4b6da..811fd7209 100644
--- a/gcc/testsuite/rust/compile/issue-3874.rs
+++ b/gcc/testsuite/rust/compile/issue-3874.rs
@@ -1,4 +1,3 @@
 fn wow(){
     &#[serde]
-    // { dg-error "found unexpected token .#. in null denotation" "" { target 
*-*-* } .-1 }
-}
+} // { dg-error "found unexpected token .\}. in null denotation" "" { target 
*-*-* } . }
diff --git a/gcc/testsuite/rust/compile/issue-3904.rs 
b/gcc/testsuite/rust/compile/issue-3904.rs
new file mode 100644
index 000000000..457e0ef7e
--- /dev/null
+++ b/gcc/testsuite/rust/compile/issue-3904.rs
@@ -0,0 +1 @@
+static STATIC_1: dyn = *#[serde()]; // { dg-error "found unexpected token .;. 
in null denotation" "" { target *-*-* } 0 }
-- 
2.52.0

Reply via email to