aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2024-02-07 09:27:11 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2024-02-21 13:51:26 +0100
commit6c6e357b17965d226c4d77188a9c1e6f89503ff5 (patch)
tree9290cc66bf70f929a50bd1de6109afb254b329bc /gcc
parentf8dad5a80cdd0827443f1e164b5afa469e0d6d2e (diff)
downloadgcc-6c6e357b17965d226c4d77188a9c1e6f89503ff5.zip
gcc-6c6e357b17965d226c4d77188a9c1e6f89503ff5.tar.gz
gcc-6c6e357b17965d226c4d77188a9c1e6f89503ff5.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 }