aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMarc Poulhiès <dkm@kataplop.net>2021-03-27 20:16:20 +0100
committerMarc Poulhiès <dkm@kataplop.net>2021-03-28 11:02:34 +0200
commitcf10b0258810aaa4d4241af2ee28e7469e12cb89 (patch)
treecced92f619ff609dde742bd701cafea146ea693a /gcc
parente4ea09d6b8e501dc7bd7046da641b70e02814b09 (diff)
downloadgcc-cf10b0258810aaa4d4241af2ee28e7469e12cb89.zip
gcc-cf10b0258810aaa4d4241af2ee28e7469e12cb89.tar.gz
gcc-cf10b0258810aaa4d4241af2ee28e7469e12cb89.tar.bz2
Fix tests after several PR were merged
the PR #302 and #301 were conflicting because they are both modifying the tests. Move the conflicting test and add correct dg-error directive. continue1.rs is less verbose after #286, remove the dg-excess-error.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/rust.test/xfail_compile/continue1.rs1
-rw-r--r--gcc/testsuite/rust.test/xfail_compile/fail_compilation/unterminated_c_comment.rs1
-rw-r--r--gcc/testsuite/rust.test/xfail_compile/unterminated_c_comment.rs2
3 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/rust.test/xfail_compile/continue1.rs b/gcc/testsuite/rust.test/xfail_compile/continue1.rs
index de48ef2..f6314ca 100644
--- a/gcc/testsuite/rust.test/xfail_compile/continue1.rs
+++ b/gcc/testsuite/rust.test/xfail_compile/continue1.rs
@@ -1,4 +1,3 @@
-// { dg-excess-errors "Noisy error and debug" }
fn main() {
let mut a = 1;
let mut b = 1;
diff --git a/gcc/testsuite/rust.test/xfail_compile/fail_compilation/unterminated_c_comment.rs b/gcc/testsuite/rust.test/xfail_compile/fail_compilation/unterminated_c_comment.rs
deleted file mode 100644
index 4d04d01..0000000
--- a/gcc/testsuite/rust.test/xfail_compile/fail_compilation/unterminated_c_comment.rs
+++ /dev/null
@@ -1 +0,0 @@
-/* This comment needs closure :) !
diff --git a/gcc/testsuite/rust.test/xfail_compile/unterminated_c_comment.rs b/gcc/testsuite/rust.test/xfail_compile/unterminated_c_comment.rs
new file mode 100644
index 0000000..bc5ef98
--- /dev/null
+++ b/gcc/testsuite/rust.test/xfail_compile/unterminated_c_comment.rs
@@ -0,0 +1,2 @@
+// { dg-error "unexpected EOF while looking for end of comment" "" { target { *-*-* } } .+1 }
+/* This comment needs closure :) !