Skip to content

Commit 8e94761

Browse files
dtolnaycalebcartwright
authored andcommitted
Add test of macro calls inside extern block
1 parent e0c7b7d commit 8e94761

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

tests/source/extern.rs

+13
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,16 @@ libc::c_long;
7777
extern {
7878

7979
}
80+
81+
macro_rules! x {
82+
($tt:tt) => {};
83+
}
84+
85+
extern "macros" {
86+
x!(ident);
87+
// x!(#); FIXME
88+
x![ident];
89+
// x![#]; FIXME
90+
x! {ident}
91+
x! {#}
92+
}

tests/target/extern.rs

+13
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,16 @@ extern "C" {
8282
}
8383

8484
extern "C" {}
85+
86+
macro_rules! x {
87+
($tt:tt) => {};
88+
}
89+
90+
extern "macros" {
91+
x!(ident);
92+
// x!(#); FIXME
93+
x![ident];
94+
// x![#]; FIXME
95+
x! {ident}
96+
x! {#}
97+
}

0 commit comments

Comments
 (0)