]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Add regression test for lifetime name validation
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Tue, 7 Nov 2023 18:13:57 +0000 (19:13 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 18:13:13 +0000 (19:13 +0100)
commitff82ac5541641d836f145833b66765aa70ee8dc7
treec3c190a03aa35d372503205409f661c6158c6221
parentea4cd6453d3a3af501edcc97d362f7c4e9e83995
gccrs: Add regression test for lifetime name validation

Lifetime name are restricted and cannot be keyword, this commit add a
test failing the ast validation pass due to some keyword name.

gcc/testsuite/ChangeLog:

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

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