diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2024-07-25 14:27:41 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-03-19 15:32:01 +0100 |
commit | 4d6b34b669c4d274ce80baeedc7b29b4e719efdc (patch) | |
tree | f303ee6c8114a108d5210ed00205049f4e3814c3 /gcc | |
parent | 3c5e87297bd56b7d95ecdf9f3ca9e9110cfc34c7 (diff) | |
download | gcc-4d6b34b669c4d274ce80baeedc7b29b4e719efdc.zip gcc-4d6b34b669c4d274ce80baeedc7b29b4e719efdc.tar.gz gcc-4d6b34b669c4d274ce80baeedc7b29b4e719efdc.tar.bz2 |
gccrs: Move procedural macro test to their own directory
gcc/testsuite/ChangeLog:
* rust/compile/macros/proc/proc_macro.exp: New deja gnu file to execute
proc-macro tests.
* rust/compile/proc_macro_attribute_crate_type.rs: Move to...
* rust/compile/macros/proc/attribute_crate_type.rs: ...here.
* rust/compile/proc_macro_attribute_non_function.rs: Move to...
* rust/compile/macros/proc/attribute_non_function.rs: ...here.
* rust/compile/proc_macro_attribute_non_root_function.rs: Move to...
* rust/compile/macros/proc/attribute_non_root_function.rs: ...here.
* rust/compile/proc_macro_attribute_non_root_method.rs: Move to...
* rust/compile/macros/proc/attribute_non_root_method.rs: ...here.
* rust/compile/proc_macro_attribute_non_root_module.rs: Move to...
* rust/compile/macros/proc/attribute_non_root_module.rs: ...here.
* rust/compile/proc_macro_attribute_private.rs: Move to...
* rust/compile/macros/proc/attribute_private.rs: ...here.
* rust/compile/proc_macro_crate_type.rs: Move to...
* rust/compile/macros/proc/crate_type.rs: ...here.
* rust/compile/proc_macro_derive_crate_type.rs: Move to...
* rust/compile/macros/proc/derive_crate_type.rs: ...here.
* rust/compile/proc_macro_derive_malformed.rs: Move to...
* rust/compile/macros/proc/derive_malformed.rs: ...here.
* rust/compile/proc_macro_derive_non_function.rs: Move to...
* rust/compile/macros/proc/derive_non_function.rs: ...here.
* rust/compile/proc_macro_derive_non_root_function.rs: Move to...
* rust/compile/macros/proc/derive_non_root_function.rs: ...here.
* rust/compile/proc_macro_derive_non_root_module.rs: Move to...
* rust/compile/macros/proc/derive_non_root_module.rs: ...here.
* rust/compile/proc_macro_derive_private.rs: Move to...
* rust/compile/macros/proc/derive_private.rs: ...here.
* rust/compile/proc_macro_non_function.rs: Move to...
* rust/compile/macros/proc/non_function.rs: ...here.
* rust/compile/proc_macro_non_root_function.rs: Move to...
* rust/compile/macros/proc/non_root_function.rs: ...here.
* rust/compile/proc_macro_non_root_method.rs: Move to...
* rust/compile/macros/proc/non_root_method.rs: ...here.
* rust/compile/proc_macro_non_root_module.rs: Move to...
* rust/compile/macros/proc/non_root_module.rs: ...here.
* rust/compile/proc_macro_derive_non_root_method.rs: Move to...
* rust/compile/macros/proc/non_root_trait_method.rs: ...here.
* rust/compile/proc_macro_private.rs: Move to...
* rust/compile/macros/proc/private.rs: ...here.
* rust/compile/proc_macro_pub_function.rs: Move to...
* rust/compile/macros/proc/pub_function.rs: ...here.
* rust/compile/proc_macro_pub_module.rs: Move to...
* rust/compile/macros/proc/pub_module.rs: ...here.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/rust/compile/macros/proc/attribute_crate_type.rs (renamed from gcc/testsuite/rust/compile/proc_macro_attribute_crate_type.rs) | 0 | ||||
-rw-r--r-- | gcc/testsuite/rust/compile/macros/proc/attribute_non_function.rs (renamed from gcc/testsuite/rust/compile/proc_macro_attribute_non_function.rs) | 0 | ||||
-rw-r--r-- | gcc/testsuite/rust/compile/macros/proc/attribute_non_root_function.rs (renamed from gcc/testsuite/rust/compile/proc_macro_attribute_non_root_function.rs) | 0 | ||||
-rw-r--r-- | gcc/testsuite/rust/compile/macros/proc/attribute_non_root_method.rs (renamed from gcc/testsuite/rust/compile/proc_macro_attribute_non_root_method.rs) | 0 | ||||
-rw-r--r-- | gcc/testsuite/rust/compile/macros/proc/attribute_non_root_module.rs (renamed from gcc/testsuite/rust/compile/proc_macro_attribute_non_root_module.rs) | 0 | ||||
-rw-r--r-- | gcc/testsuite/rust/compile/macros/proc/attribute_private.rs (renamed from gcc/testsuite/rust/compile/proc_macro_attribute_private.rs) | 0 | ||||
-rw-r--r-- | gcc/testsuite/rust/compile/macros/proc/crate_type.rs (renamed from gcc/testsuite/rust/compile/proc_macro_crate_type.rs) | 0 | ||||
-rw-r--r-- | gcc/testsuite/rust/compile/macros/proc/derive_crate_type.rs (renamed from gcc/testsuite/rust/compile/proc_macro_derive_crate_type.rs) | 0 | ||||
-rw-r--r-- | gcc/testsuite/rust/compile/macros/proc/derive_malformed.rs (renamed from gcc/testsuite/rust/compile/proc_macro_derive_malformed.rs) | 0 | ||||
-rw-r--r-- | gcc/testsuite/rust/compile/macros/proc/derive_non_function.rs (renamed from gcc/testsuite/rust/compile/proc_macro_derive_non_function.rs) | 0 | ||||
-rw-r--r-- | gcc/testsuite/rust/compile/macros/proc/derive_non_root_function.rs (renamed from gcc/testsuite/rust/compile/proc_macro_derive_non_root_function.rs) | 0 | ||||
-rw-r--r-- | gcc/testsuite/rust/compile/macros/proc/derive_non_root_module.rs (renamed from gcc/testsuite/rust/compile/proc_macro_derive_non_root_module.rs) | 0 | ||||
-rw-r--r-- | gcc/testsuite/rust/compile/macros/proc/derive_private.rs (renamed from gcc/testsuite/rust/compile/proc_macro_derive_private.rs) | 0 | ||||
-rw-r--r-- | gcc/testsuite/rust/compile/macros/proc/non_function.rs (renamed from gcc/testsuite/rust/compile/proc_macro_non_function.rs) | 0 | ||||
-rw-r--r-- | gcc/testsuite/rust/compile/macros/proc/non_root_function.rs (renamed from gcc/testsuite/rust/compile/proc_macro_non_root_function.rs) | 0 | ||||
-rw-r--r-- | gcc/testsuite/rust/compile/macros/proc/non_root_method.rs (renamed from gcc/testsuite/rust/compile/proc_macro_non_root_method.rs) | 0 | ||||
-rw-r--r-- | gcc/testsuite/rust/compile/macros/proc/non_root_module.rs (renamed from gcc/testsuite/rust/compile/proc_macro_non_root_module.rs) | 0 | ||||
-rw-r--r-- | gcc/testsuite/rust/compile/macros/proc/non_root_trait_method.rs (renamed from gcc/testsuite/rust/compile/proc_macro_derive_non_root_method.rs) | 0 | ||||
-rw-r--r-- | gcc/testsuite/rust/compile/macros/proc/private.rs (renamed from gcc/testsuite/rust/compile/proc_macro_private.rs) | 0 | ||||
-rw-r--r-- | gcc/testsuite/rust/compile/macros/proc/proc_macro.exp | 35 | ||||
-rw-r--r-- | gcc/testsuite/rust/compile/macros/proc/pub_function.rs (renamed from gcc/testsuite/rust/compile/proc_macro_pub_function.rs) | 0 | ||||
-rw-r--r-- | gcc/testsuite/rust/compile/macros/proc/pub_module.rs (renamed from gcc/testsuite/rust/compile/proc_macro_pub_module.rs) | 0 |
22 files changed, 35 insertions, 0 deletions
diff --git a/gcc/testsuite/rust/compile/proc_macro_attribute_crate_type.rs b/gcc/testsuite/rust/compile/macros/proc/attribute_crate_type.rs index c13128e..c13128e 100644 --- a/gcc/testsuite/rust/compile/proc_macro_attribute_crate_type.rs +++ b/gcc/testsuite/rust/compile/macros/proc/attribute_crate_type.rs diff --git a/gcc/testsuite/rust/compile/proc_macro_attribute_non_function.rs b/gcc/testsuite/rust/compile/macros/proc/attribute_non_function.rs index 0e88bbe..0e88bbe 100644 --- a/gcc/testsuite/rust/compile/proc_macro_attribute_non_function.rs +++ b/gcc/testsuite/rust/compile/macros/proc/attribute_non_function.rs diff --git a/gcc/testsuite/rust/compile/proc_macro_attribute_non_root_function.rs b/gcc/testsuite/rust/compile/macros/proc/attribute_non_root_function.rs index 709119c..709119c 100644 --- a/gcc/testsuite/rust/compile/proc_macro_attribute_non_root_function.rs +++ b/gcc/testsuite/rust/compile/macros/proc/attribute_non_root_function.rs diff --git a/gcc/testsuite/rust/compile/proc_macro_attribute_non_root_method.rs b/gcc/testsuite/rust/compile/macros/proc/attribute_non_root_method.rs index 30f3196..30f3196 100644 --- a/gcc/testsuite/rust/compile/proc_macro_attribute_non_root_method.rs +++ b/gcc/testsuite/rust/compile/macros/proc/attribute_non_root_method.rs diff --git a/gcc/testsuite/rust/compile/proc_macro_attribute_non_root_module.rs b/gcc/testsuite/rust/compile/macros/proc/attribute_non_root_module.rs index 60165be..60165be 100644 --- a/gcc/testsuite/rust/compile/proc_macro_attribute_non_root_module.rs +++ b/gcc/testsuite/rust/compile/macros/proc/attribute_non_root_module.rs diff --git a/gcc/testsuite/rust/compile/proc_macro_attribute_private.rs b/gcc/testsuite/rust/compile/macros/proc/attribute_private.rs index 00b5ac6..00b5ac6 100644 --- a/gcc/testsuite/rust/compile/proc_macro_attribute_private.rs +++ b/gcc/testsuite/rust/compile/macros/proc/attribute_private.rs diff --git a/gcc/testsuite/rust/compile/proc_macro_crate_type.rs b/gcc/testsuite/rust/compile/macros/proc/crate_type.rs index 880026d..880026d 100644 --- a/gcc/testsuite/rust/compile/proc_macro_crate_type.rs +++ b/gcc/testsuite/rust/compile/macros/proc/crate_type.rs diff --git a/gcc/testsuite/rust/compile/proc_macro_derive_crate_type.rs b/gcc/testsuite/rust/compile/macros/proc/derive_crate_type.rs index 7d4234b..7d4234b 100644 --- a/gcc/testsuite/rust/compile/proc_macro_derive_crate_type.rs +++ b/gcc/testsuite/rust/compile/macros/proc/derive_crate_type.rs diff --git a/gcc/testsuite/rust/compile/proc_macro_derive_malformed.rs b/gcc/testsuite/rust/compile/macros/proc/derive_malformed.rs index d83256b..d83256b 100644 --- a/gcc/testsuite/rust/compile/proc_macro_derive_malformed.rs +++ b/gcc/testsuite/rust/compile/macros/proc/derive_malformed.rs diff --git a/gcc/testsuite/rust/compile/proc_macro_derive_non_function.rs b/gcc/testsuite/rust/compile/macros/proc/derive_non_function.rs index 7cb4c0b..7cb4c0b 100644 --- a/gcc/testsuite/rust/compile/proc_macro_derive_non_function.rs +++ b/gcc/testsuite/rust/compile/macros/proc/derive_non_function.rs diff --git a/gcc/testsuite/rust/compile/proc_macro_derive_non_root_function.rs b/gcc/testsuite/rust/compile/macros/proc/derive_non_root_function.rs index 69d5ca1..69d5ca1 100644 --- a/gcc/testsuite/rust/compile/proc_macro_derive_non_root_function.rs +++ b/gcc/testsuite/rust/compile/macros/proc/derive_non_root_function.rs diff --git a/gcc/testsuite/rust/compile/proc_macro_derive_non_root_module.rs b/gcc/testsuite/rust/compile/macros/proc/derive_non_root_module.rs index 45d7a47..45d7a47 100644 --- a/gcc/testsuite/rust/compile/proc_macro_derive_non_root_module.rs +++ b/gcc/testsuite/rust/compile/macros/proc/derive_non_root_module.rs diff --git a/gcc/testsuite/rust/compile/proc_macro_derive_private.rs b/gcc/testsuite/rust/compile/macros/proc/derive_private.rs index 69922be..69922be 100644 --- a/gcc/testsuite/rust/compile/proc_macro_derive_private.rs +++ b/gcc/testsuite/rust/compile/macros/proc/derive_private.rs diff --git a/gcc/testsuite/rust/compile/proc_macro_non_function.rs b/gcc/testsuite/rust/compile/macros/proc/non_function.rs index ff2083c..ff2083c 100644 --- a/gcc/testsuite/rust/compile/proc_macro_non_function.rs +++ b/gcc/testsuite/rust/compile/macros/proc/non_function.rs diff --git a/gcc/testsuite/rust/compile/proc_macro_non_root_function.rs b/gcc/testsuite/rust/compile/macros/proc/non_root_function.rs index 9309940..9309940 100644 --- a/gcc/testsuite/rust/compile/proc_macro_non_root_function.rs +++ b/gcc/testsuite/rust/compile/macros/proc/non_root_function.rs diff --git a/gcc/testsuite/rust/compile/proc_macro_non_root_method.rs b/gcc/testsuite/rust/compile/macros/proc/non_root_method.rs index ee52c324..ee52c324 100644 --- a/gcc/testsuite/rust/compile/proc_macro_non_root_method.rs +++ b/gcc/testsuite/rust/compile/macros/proc/non_root_method.rs diff --git a/gcc/testsuite/rust/compile/proc_macro_non_root_module.rs b/gcc/testsuite/rust/compile/macros/proc/non_root_module.rs index 1028612..1028612 100644 --- a/gcc/testsuite/rust/compile/proc_macro_non_root_module.rs +++ b/gcc/testsuite/rust/compile/macros/proc/non_root_module.rs diff --git a/gcc/testsuite/rust/compile/proc_macro_derive_non_root_method.rs b/gcc/testsuite/rust/compile/macros/proc/non_root_trait_method.rs index 523b37a..523b37a 100644 --- a/gcc/testsuite/rust/compile/proc_macro_derive_non_root_method.rs +++ b/gcc/testsuite/rust/compile/macros/proc/non_root_trait_method.rs diff --git a/gcc/testsuite/rust/compile/proc_macro_private.rs b/gcc/testsuite/rust/compile/macros/proc/private.rs index 17e85f4..17e85f4 100644 --- a/gcc/testsuite/rust/compile/proc_macro_private.rs +++ b/gcc/testsuite/rust/compile/macros/proc/private.rs diff --git a/gcc/testsuite/rust/compile/macros/proc/proc_macro.exp b/gcc/testsuite/rust/compile/macros/proc/proc_macro.exp new file mode 100644 index 0000000..ac891db --- /dev/null +++ b/gcc/testsuite/rust/compile/macros/proc/proc_macro.exp @@ -0,0 +1,35 @@ +# Copyright (C) 2021-2024 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GCC; see the file COPYING3. If not see +# <http://www.gnu.org/licenses/>. + +# Compile tests, no torture testing. +# +# These tests raise errors in the front end; torture testing doesn't apply. + +# Load support procs. +load_lib rust-dg.exp + +# Initialize `dg'. +dg-init + +# Main loop. +set saved-dg-do-what-default ${dg-do-what-default} + +set dg-do-what-default "compile" +dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.rs]] "" "" +set dg-do-what-default ${saved-dg-do-what-default} + +# All done. +dg-finish diff --git a/gcc/testsuite/rust/compile/proc_macro_pub_function.rs b/gcc/testsuite/rust/compile/macros/proc/pub_function.rs index 52f5d38..52f5d38 100644 --- a/gcc/testsuite/rust/compile/proc_macro_pub_function.rs +++ b/gcc/testsuite/rust/compile/macros/proc/pub_function.rs diff --git a/gcc/testsuite/rust/compile/proc_macro_pub_module.rs b/gcc/testsuite/rust/compile/macros/proc/pub_module.rs index a8bc0e8..a8bc0e8 100644 --- a/gcc/testsuite/rust/compile/proc_macro_pub_module.rs +++ b/gcc/testsuite/rust/compile/macros/proc/pub_module.rs |