]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Add testcase to show forward declared items work via TypeAlias
authorPhilip Herron <philip.herron@embecosm.com>
Tue, 27 Sep 2022 07:57:49 +0000 (08:57 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 31 Jan 2023 13:16:52 +0000 (14:16 +0100)
Fixes #1073

gcc/testsuite/ChangeLog:

* rust/compile/issue-1073.rs: New test.

gcc/testsuite/rust/compile/issue-1073.rs [new file with mode: 0644]

diff --git a/gcc/testsuite/rust/compile/issue-1073.rs b/gcc/testsuite/rust/compile/issue-1073.rs
new file mode 100644 (file)
index 0000000..ac887c0
--- /dev/null
@@ -0,0 +1,4 @@
+// { dg-options "-w" }
+type A = B;
+
+struct B;