summary refs log tree commit diff
path: root/tests/run-coverage/auxiliary
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-coverage/auxiliary')
-rw-r--r--tests/run-coverage/auxiliary/macro_name_span_helper.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/run-coverage/auxiliary/macro_name_span_helper.rs b/tests/run-coverage/auxiliary/macro_name_span_helper.rs
new file mode 100644
index 00000000000..6797c081d93
--- /dev/null
+++ b/tests/run-coverage/auxiliary/macro_name_span_helper.rs
@@ -0,0 +1,10 @@
+// edition: 2021
+
+#[macro_export]
+macro_rules! macro_that_defines_a_function {
+    (fn $name:ident () $body:tt) => {
+        fn $name () -> () $body
+    }
+}
+
+// Non-executable comment.