diff options
author | Philip Herron <herron.philip@googlemail.com> | 2023-03-29 16:43:32 +0100 |
---|---|---|
committer | Philip Herron <herron.philip@googlemail.com> | 2023-03-30 14:43:24 +0100 |
commit | 5055bd893969afbe00ad74882ad0d1fc19fdddea (patch) | |
tree | f368545b59db7592f239c1b18993f5f9ead6c158 /gcc | |
parent | bb035c384a08ef25dceadc33b11d2fb990209cb0 (diff) | |
download | gcc-5055bd893969afbe00ad74882ad0d1fc19fdddea.zip gcc-5055bd893969afbe00ad74882ad0d1fc19fdddea.tar.gz gcc-5055bd893969afbe00ad74882ad0d1fc19fdddea.tar.bz2 |
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>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/rust/compile/bounds1.rs (renamed from gcc/testsuite/rust/bounds1.rs) | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/rust/bounds1.rs b/gcc/testsuite/rust/compile/bounds1.rs index 6658360..1ace9fb 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 } } |