From 05263f05bd5c78fe129e1a32479852f1c2bb66fa Mon Sep 17 00:00:00 2001 From: Takayuki Maeda Date: Tue, 28 Jun 2022 12:28:04 +0900 Subject: [PATCH] add regression test for #80074 --- src/test/ui/extern/auxiliary/issue-80074-macro.rs | 4 ++++ src/test/ui/extern/issue-80074.rs | 10 ++++++++++ 2 files changed, 14 insertions(+) create mode 100644 src/test/ui/extern/auxiliary/issue-80074-macro.rs create mode 100644 src/test/ui/extern/issue-80074.rs diff --git a/src/test/ui/extern/auxiliary/issue-80074-macro.rs b/src/test/ui/extern/auxiliary/issue-80074-macro.rs new file mode 100644 index 00000000000..30e0f19ab8d --- /dev/null +++ b/src/test/ui/extern/auxiliary/issue-80074-macro.rs @@ -0,0 +1,4 @@ +// edition:2018 + +macro_rules! foo_ { () => {}; } +use foo_ as foo; diff --git a/src/test/ui/extern/issue-80074.rs b/src/test/ui/extern/issue-80074.rs new file mode 100644 index 00000000000..f83027d4abf --- /dev/null +++ b/src/test/ui/extern/issue-80074.rs @@ -0,0 +1,10 @@ +// edition:2018 +// build-pass +// aux-crate:issue_80074=issue-80074-macro.rs + +#[macro_use] +extern crate issue_80074; + +fn main() { + foo!(); +}