]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Add a regression test for async const functions
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Wed, 22 Nov 2023 10:12:05 +0000 (11:12 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 30 Jan 2024 11:36:47 +0000 (12:36 +0100)
commitac501a75b263a7dd7fa437c01aae53d41e30a515
treea5b10454adc51f51ed74de365f7b63c83220fccc
parent04b3089a47c5ccfb86b29a9c64157d5d4f755c1c
gccrs: Add a regression test for async const functions

Functions that are both async and const shall be rejected during the
AST validation pass. This new test highlight this behavior.

gcc/testsuite/ChangeLog:

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

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