]> git.ipfire.org Git - thirdparty/gcc.git/commit
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)
committerP-E-P <32375388+P-E-P@users.noreply.github.com>
Fri, 1 Dec 2023 13:10:14 +0000 (13:10 +0000)
commitdc962fa75f740131058160eed8d50610fbb5c41c
treecafee88eb25762049ab0676efe20e8d0a36fdaf1
parentb831e5bf7b81cdaa3c9f05b6783b84d21ff8f3a1
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]