Skip to content

Commit 293b7a3

Browse files
committed
gccrs: Add test case to show issue is fixed
Fixes #3524 gcc/testsuite/ChangeLog: * rust/compile/issue-3524.rs: New test. Signed-off-by: Philip Herron <[email protected]>
1 parent 28c3348 commit 293b7a3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
struct A {}
2+
// { dg-warning "struct is never constructed" "" { target *-*-* } .-1 }
3+
4+
impl A {
5+
fn main() {}
6+
// { dg-warning "associated function is never used: .main." "" { target *-*-* } .-1 }
7+
}
8+
9+
fn main() {}

0 commit comments

Comments
 (0)