aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Herron <herron.philip@googlemail.com>2023-02-16 16:14:23 +0000
committerPhilip Herron <philip.herron@embecosm.com>2023-02-16 23:17:34 +0000
commit332b8abe75851fa2a0e9361df93097f8f647ff3d (patch)
tree7ff11743eb35ca60ff83070f3dff0304c0c6b133
parent1bd1e46645337e54ff256510d3853fc583480808 (diff)
downloadgcc-332b8abe75851fa2a0e9361df93097f8f647ff3d.zip
gcc-332b8abe75851fa2a0e9361df93097f8f647ff3d.tar.gz
gcc-332b8abe75851fa2a0e9361df93097f8f647ff3d.tar.bz2
gccrs: add test case to show our query-type system is working
Fixes #1361 Signed-off-by: Philip Herron <herron.philip@googlemail.com> gcc/testsuite/ChangeLog: * rust/compile/issue-1361.rs: New test.
-rw-r--r--gcc/testsuite/rust/compile/issue-1361.rs8
1 files changed, 8 insertions, 0 deletions
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,
+}