public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] testsuite: test for diagnostics shown ...
@ 2022-08-09 20:38 Thomas Schwinge
  0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-08-09 20:38 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:ab9b1e4deaea513c454a6dd7cf697afb6d2e7f63

commit ab9b1e4deaea513c454a6dd7cf697afb6d2e7f63
Author: liushuyu <liushuyu011@gmail.com>
Date:   Sun Aug 7 23:44:08 2022 -0600

    testsuite: test for diagnostics shown ...
    
    ... when a built-in macro does not exist

Diff:
---
 gcc/testsuite/rust/compile/builtin_macro_not_found.rs | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gcc/testsuite/rust/compile/builtin_macro_not_found.rs b/gcc/testsuite/rust/compile/builtin_macro_not_found.rs
new file mode 100644
index 00000000000..1a3228b9284
--- /dev/null
+++ b/gcc/testsuite/rust/compile/builtin_macro_not_found.rs
@@ -0,0 +1,4 @@
+#[rustc_builtin_macro]
+macro_rules! crabby_crab_carb { // { dg-error "cannot find a built-in macro with name .crabby_crab_carb." }
+    () => {{}};
+}


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-08-09 20:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-09 20:38 [gcc/devel/rust/master] testsuite: test for diagnostics shown Thomas Schwinge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).