[committed 83/88] gccrs: add test case to show our query-type system is working
arthur.cohen@embecosm.com
arthur.cohen@embecosm.com
Wed Apr 5 14:04:07 GMT 2023
From: Philip Herron <herron.philip@googlemail.com>
Fixes #1361
Signed-off-by: Philip Herron <herron.philip@googlemail.com>
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 00000000000..f8909727216
--- /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.40.0
More information about the Gcc-rust
mailing list