Skip to content

Commit 0d89970

Browse files
VillosseP-E-P
authored andcommitted
gccrs: Adds and fixes tests for outer attributes in expression
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]>
1 parent a0897c4 commit 0d89970

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
fn wow(){
22
&#[serde]
3-
// { dg-error "found unexpected token .#. in null denotation" "" { target *-*-* } .-1 }
4-
}
3+
} // { dg-error "found unexpected token .\}. in null denotation" "" { target *-*-* } . }
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
static STATIC_1: dyn = *#[serde()]; // { dg-error "found unexpected token .;. in null denotation" "" { target *-*-* } 0 }

0 commit comments

Comments
 (0)