From: Philip Herron Date: Thu, 16 Feb 2023 16:14:23 +0000 (+0000) Subject: gccrs: add test case to show our query-type system is working X-Git-Tag: basepoints/gcc-14~100 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3b342e11627f2050cb0ecfe52d79de2060795b50;p=thirdparty%2Fgcc.git gccrs: add test case to show our query-type system is working Fixes #1361 Signed-off-by: Philip Herron gcc/testsuite/ChangeLog: * rust/compile/issue-1361.rs: New test. --- diff --git a/gcc/testsuite/rust/compile/issue-1361.rs b/gcc/testsuite/rust/compile/issue-1361.rs new file mode 100644 index 000000000000..f8909727216e --- /dev/null +++ b/gcc/testsuite/rust/compile/issue-1361.rs @@ -0,0 +1,8 @@ +// { dg-options "-w" } +fn foo() -> S { + S { a: 15 } +} + +struct S { + a: i32, +}