diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-02-07 09:27:11 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-02-21 13:51:26 +0100 |
commit | 6c6e357b17965d226c4d77188a9c1e6f89503ff5 (patch) | |
tree | 9290cc66bf70f929a50bd1de6109afb254b329bc | |
parent | f8dad5a80cdd0827443f1e164b5afa469e0d6d2e (diff) | |
download | gcc-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.
-rw-r--r-- | gcc/testsuite/rust/compile/rustc_const_stable.rs | 2 |
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 } |