[COMMITTED,5/9] gccrs: Add testcase for #[rustc_const_stable]

Message ID 20240221131636.3336103-8-arthur.cohen@embecosm.com
State Committed
Commit 6c6e357b17965d226c4d77188a9c1e6f89503ff5
Headers
Series [COMMITTED,1/9] gccrs: Fix typo in RegionConstraints instance |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gcc_build--master-arm warning Patch is already merged
linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 warning Patch is already merged

Commit Message

Arthur Cohen Feb. 21, 2024, 1:15 p.m. UTC
  From: Arthur Cohen <arthur.cohen@embecosm.com>

To ensure we don't introduce regressions back to issue #2314

gcc/testsuite/ChangeLog:

	* rust/compile/rustc_const_stable.rs: New test.
---
 gcc/testsuite/rust/compile/rustc_const_stable.rs | 2 ++
 1 file changed, 2 insertions(+)
 create mode 100644 gcc/testsuite/rust/compile/rustc_const_stable.rs
  

Patch

diff --git a/gcc/testsuite/rust/compile/rustc_const_stable.rs b/gcc/testsuite/rust/compile/rustc_const_stable.rs
new file mode 100644
index 00000000000..9208b1ab3b6
--- /dev/null
+++ b/gcc/testsuite/rust/compile/rustc_const_stable.rs
@@ -0,0 +1,2 @@ 
+#[rustc_const_stable(feature = "const_ascii_ctype_on_intrinsics", since = "1.47.0")]
+pub fn foo() {} // { dg-error "macro not found" "" { target *-*-* } .-1 }