Skip to content

Commit

Permalink
gccrs: Add testcase for #[rustc_const_stable]
Browse files Browse the repository at this point in the history
To ensure we don't introduce regressions back to issue #2314

gcc/testsuite/ChangeLog:

	* rust/compile/rustc_const_stable.rs: New test.
  • Loading branch information
CohenArthur committed Feb 13, 2024
1 parent 02f7bef commit 0a0549e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gcc/testsuite/rust/compile/rustc_const_stable.rs
Original file line number Diff line number Diff line change
@@ -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 }

0 comments on commit 0a0549e

Please sign in to comment.