Add test of macro calls inside extern block

This commit is contained in:
David Tolnay 2022-03-29 13:09:28 -07:00 committed by Caleb Cartwright
parent e0c7b7d5d3
commit 8e94761a94
2 changed files with 26 additions and 0 deletions

View File

@ -77,3 +77,16 @@ unsafe fn foo(
extern {
}
macro_rules! x {
($tt:tt) => {};
}
extern "macros" {
x!(ident);
// x!(#); FIXME
x![ident];
// x![#]; FIXME
x! {ident}
x! {#}
}

View File

@ -82,3 +82,16 @@ pub fn freopen(
}
extern "C" {}
macro_rules! x {
($tt:tt) => {};
}
extern "macros" {
x!(ident);
// x!(#); FIXME
x![ident];
// x![#]; FIXME
x! {ident}
x! {#}
}