From ab9b1e4deaea513c454a6dd7cf697afb6d2e7f63 Mon Sep 17 00:00:00 2001 From: liushuyu Date: Sun, 7 Aug 2022 23:44:08 -0600 Subject: [PATCH] testsuite: test for diagnostics shown ... ... when a built-in macro does not exist --- gcc/testsuite/rust/compile/builtin_macro_not_found.rs | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 gcc/testsuite/rust/compile/builtin_macro_not_found.rs 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." } + () => {{}}; +}