]> git.ipfire.org Git - thirdparty/gcc.git/commit
Add two new tests related to may_dangle attribute
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Mon, 20 May 2024 11:29:51 +0000 (13:29 +0200)
committerP-E-P <32375388+P-E-P@users.noreply.github.com>
Tue, 11 Jun 2024 15:53:17 +0000 (15:53 +0000)
commit14c4c2f142d1908e8e93aa15d49f61f97f060727
treecc0df2e8f769014867c6fb37d06c54b3e6eb33f5
parent85967c878147b3dc77f969f18adddfe2d5c3676d
Add two new tests related to may_dangle attribute

First test checks the may_dangle outer atttribute on generic params can
be parsed. The second one tests whether may_dangle attributes are
correctly feature gated.

gcc/testsuite/ChangeLog:

* rust/compile/dropck_eyepatch_feature_gate.rs: New test.
* rust/compile/may_dangle.rs: New test.

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