]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Add testcase for #[rustc_const_stable]
authorArthur Cohen <arthur.cohen@embecosm.com>
Wed, 7 Feb 2024 08:27:11 +0000 (09:27 +0100)
committerCohenArthur <arthur.cohen@embecosm.com>
Tue, 13 Feb 2024 11:21:47 +0000 (11:21 +0000)
To ensure we don't introduce regressions back to issue #2314

gcc/testsuite/ChangeLog:

* rust/compile/rustc_const_stable.rs: New test.

gcc/testsuite/rust/compile/rustc_const_stable.rs [new file with mode: 0644]

diff --git a/gcc/testsuite/rust/compile/rustc_const_stable.rs b/gcc/testsuite/rust/compile/rustc_const_stable.rs
new file mode 100644 (file)
index 0000000..9208b1a
--- /dev/null
@@ -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 }