]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Add multiple regression test in name resolution
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Thu, 30 Nov 2023 09:43:36 +0000 (10:43 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 30 Jan 2024 11:36:48 +0000 (12:36 +0100)
commita3f4152a312c873b0d81c0715946b15a04193700
treece4237853a773f27ed9cc01e987022f0afc05fdd
parent4cd0315aa91c70f7129833671cedb12a7b45e199
gccrs: Add multiple regression test in name resolution

Local variables and functions or global variables have different
resolution when binded to a variable. This was not covered before, even
though it was handled by the new name resolution. This commit highlight
this behavior from the new name resolution mechanism.

gcc/testsuite/ChangeLog:

* rust/compile/name_resolution11.rs: New test.
* rust/compile/name_resolution12.rs: New test.
* rust/compile/name_resolution13.rs: New test.

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