From 3b342e11627f2050cb0ecfe52d79de2060795b50 Mon Sep 17 00:00:00 2001 From: Philip Herron Date: Thu, 16 Feb 2023 16:14:23 +0000 Subject: [PATCH] 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. --- gcc/testsuite/rust/compile/issue-1361.rs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 gcc/testsuite/rust/compile/issue-1361.rs diff --git a/gcc/testsuite/rust/compile/issue-1361.rs b/gcc/testsuite/rust/compile/issue-1361.rs new file mode 100644 index 0000000..f890972 --- /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, +} -- 2.7.4