]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Add test for multiple wildcard use declaration.
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Tue, 12 Aug 2025 11:53:13 +0000 (13:53 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Thu, 30 Oct 2025 19:58:37 +0000 (20:58 +0100)
gcc/testsuite/ChangeLog:

* rust/compile/import_wildcards.rs: New test.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/testsuite/rust/compile/import_wildcards.rs [new file with mode: 0644]

diff --git a/gcc/testsuite/rust/compile/import_wildcards.rs b/gcc/testsuite/rust/compile/import_wildcards.rs
new file mode 100644 (file)
index 0000000..3fc3658
--- /dev/null
@@ -0,0 +1,8 @@
+mod x {}
+
+mod y {}
+
+fn main() {
+    use x as _;
+    use y as _;
+}