]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Add new test for parsing errors on self pointers
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Wed, 15 Nov 2023 12:53:23 +0000 (13:53 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 30 Jan 2024 11:36:42 +0000 (12:36 +0100)
commit08999fb0354ee94e5902fd43bd8c43d9b9b3c74a
tree4cccdb2e8a38030ec67c57c56ddb6bb6287e9948
parent3e450ae1bb99d0111f6ca5f34ac8d6ea308c13d6
gccrs: Add new test for parsing errors on self pointers

Add new tests to highlight the behavior of errors thrown when meeting a
self pointer.

gcc/testsuite/ChangeLog:

* rust/compile/self_const_ptr.rs: New test.
* rust/compile/self_mut_ptr.rs: New test.
* rust/compile/self_ptr.rs: New test.

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