[gcc r14-7410] gccrs: move missed testcase
Arthur Cohen
cohenarthur@gcc.gnu.org
Tue Jan 16 17:32:21 GMT 2024
https://gcc.gnu.org/g:18d87c5b201cbe4ec83f1b9b286ed80f39ad97e4
commit r14-7410-g18d87c5b201cbe4ec83f1b9b286ed80f39ad97e4
Author: Philip Herron <herron.philip@googlemail.com>
Date: Wed Mar 29 16:43:32 2023 +0100
gccrs: move missed testcase
This testcase was missed and not actually added to the testsuite. This
moves it to be part of the simple compile tests.
gcc/testsuite/ChangeLog:
* rust/bounds1.rs: Moved to...
* rust/compile/bounds1.rs: ...here.
Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diff:
---
gcc/testsuite/rust/{ => compile}/bounds1.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/testsuite/rust/bounds1.rs b/gcc/testsuite/rust/compile/bounds1.rs
similarity index 100%
rename from gcc/testsuite/rust/bounds1.rs
rename to gcc/testsuite/rust/compile/bounds1.rs
index 665836088be..1ace9fbbf30 100644
--- a/gcc/testsuite/rust/bounds1.rs
+++ b/gcc/testsuite/rust/compile/bounds1.rs
@@ -10,10 +10,10 @@ mod core {
}
pub fn foo<T: core::ops::Add<Output = i32>>(a: T) -> i32 {
- // { dg-error "bounds not satisfied for f32 .Add. is not satisfied" "" { target *-*-* } .-1 }
a + a
}
pub fn main() {
foo(123f32);
+ // { dg-error "bounds not satisfied for f32 .Add. is not satisfied" "" { target *-*-* } .-1 }
}
More information about the Gcc-cvs
mailing list