]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: testsuite: Add tests for pub items in proc_macros
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Thu, 20 Jul 2023 11:06:32 +0000 (13:06 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:56:01 +0000 (18:56 +0100)
commit6ad3f1fa575a1debdaa6a41f698d71c73f6600fa
treea2a79ad23a92b22a624f62f66b8872b3959e1243
parentde83e69bb6ea300206eaf5a0cd2d365f2444f4b5
gccrs: testsuite: Add tests for pub items in proc_macros

Crates of type 'proc-macro' should not have any other pub member than
procedural macros. These new test will avoid regression on error
messages in such sitation.

gcc/testsuite/ChangeLog:

* rust/compile/proc_macro_pub_function.rs: New test.
* rust/compile/proc_macro_pub_module.rs: New test.

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