diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-02-07 09:27:11 +0100 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2024-02-13 11:21:47 +0000 |
commit | 0a0549eaba10352ed82f9bf401ae69eedb662f0d (patch) | |
tree | f3f92ad301bd5061ad94af5bab61a7fc7ef87380 /gcc | |
parent | 02f7befb8af37722c2e8340c21d7bb7a2d88a812 (diff) | |
download | gcc-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.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 } |