aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2021-05-05 23:15:21 +0200
committerThomas Schwinge <thomas@codesourcery.com>2021-05-05 23:17:27 +0200
commit949d9de3f452ba2e3370a7b9ed1bd8b607f6d552 (patch)
treea10ec2668f92a5aa98acced68956a763b629d3d3
parent03e30ba43a86c71eeed6a3d464f57fd67b1069c1 (diff)
downloadgcc-949d9de3f452ba2e3370a7b9ed1bd8b607f6d552.zip
gcc-949d9de3f452ba2e3370a7b9ed1bd8b607f6d552.tar.gz
gcc-949d9de3f452ba2e3370a7b9ed1bd8b607f6d552.tar.bz2
Fix 'dg-error' directive in 'rust.test/xfail_compile/break2.rs' [#301]
This allows removing the 'dg-excess-errors' directive, yay!
-rw-r--r--gcc/testsuite/rust.test/xfail_compile/break2.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/testsuite/rust.test/xfail_compile/break2.rs b/gcc/testsuite/rust.test/xfail_compile/break2.rs
index 185f898..4279e70 100644
--- a/gcc/testsuite/rust.test/xfail_compile/break2.rs
+++ b/gcc/testsuite/rust.test/xfail_compile/break2.rs
@@ -1,4 +1,3 @@
-// { dg-excess-errors "Noisy error and debug" }
fn main() {
let mut a = 1;
let mut b = 1;
@@ -6,7 +5,7 @@ fn main() {
let mut c;
while b > 10 {
if (b == 2) {
- break b; // { dg-error "can only break with a value inside `loop`"
+ break b; // { dg-error "can only break with a value inside `loop`" }
// { dg-error "failed to type resolve expression" "" { target *-*-* } .-1 }
}
c = a + b;