aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2021-05-05 23:15:36 +0200
committerThomas Schwinge <thomas@codesourcery.com>2021-05-05 23:17:27 +0200
commit9a0a655cd0c9b734e0386ba7f0c8e9d94ffc2c2a (patch)
tree0503f1a236cc5e5314f4954817914775a39f964b
parent949d9de3f452ba2e3370a7b9ed1bd8b607f6d552 (diff)
downloadgcc-9a0a655cd0c9b734e0386ba7f0c8e9d94ffc2c2a.zip
gcc-9a0a655cd0c9b734e0386ba7f0c8e9d94ffc2c2a.tar.gz
gcc-9a0a655cd0c9b734e0386ba7f0c8e9d94ffc2c2a.tar.bz2
Fix 'dg-error' directive in 'rust.test/xfail_compile/func2.rs' [#301]
This allows removing the 'dg-excess-errors' directive, yay!
-rw-r--r--gcc/testsuite/rust.test/xfail_compile/func2.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/testsuite/rust.test/xfail_compile/func2.rs b/gcc/testsuite/rust.test/xfail_compile/func2.rs
index 240ea97..219bbfe 100644
--- a/gcc/testsuite/rust.test/xfail_compile/func2.rs
+++ b/gcc/testsuite/rust.test/xfail_compile/func2.rs
@@ -1,10 +1,9 @@
-// { dg-excess-errors "Noisy error and debug" }
fn test(a: i32, b: i32) -> i32 {
a + b
}
fn main() {
- let a = test(1); // { dg-error "unexpected number of arguments 1 expected 2"
+ let a = test(1); // { dg-error "unexpected number of arguments 1 expected 2" }
// { dg-error "failed to lookup type to CallExpr" "" { target *-*-* } .-1 }
// { dg-error "failed to type resolve expression" "" { target *-*-* } .-2 }
}