forked from Rust-GCC/gccrs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gccrs: add test case to show issue is fixed
The original test case 1773 has been moved to a new issue 3242 which is still open and test-case is skipped. The original issue in 1773 is fixed so this will close out that issue Fixes Rust-GCC#1773 gcc/testsuite/ChangeLog: * rust/compile/issue-1773.rs: new test case * rust/compile/nr2/exclude: nr2 cant handle this * rust/compile/issue-3242.rs: old test ranamed to match issue. Signed-off-by: Philip Herron <[email protected]>
- Loading branch information
1 parent
335f6c2
commit 977a72c
Showing
3 changed files
with
40 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#[lang = "sized"] | ||
// { dg-skip-if "" { *-*-* } } | ||
pub trait Sized {} | ||
|
||
trait Foo<T> { | ||
type A; | ||
|
||
fn test(a: Self::A) -> Self::A { | ||
a | ||
} | ||
} | ||
|
||
struct Bar<T>(T); | ||
impl<T> Foo<T> for Bar<i32> { | ||
type A = T; | ||
} | ||
|
||
fn main() { | ||
let a; | ||
a = Bar(123); | ||
|
||
let b; | ||
b = Bar::test(a.0); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters