aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2024-02-07 09:27:11 +0100
committerCohenArthur <arthur.cohen@embecosm.com>2024-02-13 11:21:47 +0000
commit0a0549eaba10352ed82f9bf401ae69eedb662f0d (patch)
treef3f92ad301bd5061ad94af5bab61a7fc7ef87380 /gcc
parent02f7befb8af37722c2e8340c21d7bb7a2d88a812 (diff)
downloadgcc-0a0549eaba10352ed82f9bf401ae69eedb662f0d.zip
gcc-0a0549eaba10352ed82f9bf401ae69eedb662f0d.tar.gz
gcc-0a0549eaba10352ed82f9bf401ae69eedb662f0d.tar.bz2
gccrs: Add testcase for #[rustc_const_stable]
To ensure we don't introduce regressions back to issue #2314 gcc/testsuite/ChangeLog: * rust/compile/rustc_const_stable.rs: New test.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/rust/compile/rustc_const_stable.rs2
1 files changed, 2 insertions, 0 deletions
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 0000000..9208b1a
--- /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 }