From: Arthur Cohen Date: Wed, 7 Feb 2024 08:27:11 +0000 (+0100) Subject: gccrs: Add testcase for #[rustc_const_stable] X-Git-Tag: basepoints/gcc-15~1029 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c6e357b17965d226c4d77188a9c1e6f89503ff5;p=thirdparty%2Fgcc.git 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. --- 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 000000000000..9208b1ab3b62 --- /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 }