Skip to content

Commit 9217c80

Browse files
lucbfP-E-P
authored andcommitted
Add test for issue #3608
gcc/testsuite/ChangeLog: * rust/compile/macros/mbe/macro-issue3608.rs: New Test. The test skips an issue at line 11 Signed-off-by: Lúcio Boari Fleury <[email protected]>
1 parent eb0e85c commit 9217c80

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
include!(;
2+
3+
struct Baz {
4+
5+
impl Bar for
6+
7+
8+
fn main() { )// { dg-error "unexpected closing delimiter .\\). - token tree requires either paired delimiters or non-delimiter tokens" }
9+
// { dg-error "failed to parse token tree in delimited token tree - found .\\)." "" { target *-*-* } .-1 }
10+
// { dg-error "unexpected token .end of file. - expecting closing delimiter .\}. .for a delimited token tree." "" { target *-*-* } .+3 }
11+
// { dg-error "unexpected token .end of file. - expecting closing delimiter .\\). .for a macro invocation semi." "" { target *-*-* } .+2 }
12+
// { dg-error "failed to parse item in crate" "" { target *-*-* } .+1 }

0 commit comments

Comments
 (0)