1 // Regression test for #84632: Recursion limit is ignored
2 // for builtin macros that eagerly expands.
3 
4 #![recursion_limit = "15"]
5 macro_rules! a {
6     () => ("");
7     (A) => (concat!("", a!()));
8     (A, $($A:ident),*) => (concat!("", a!($($A),*)))
9     //~^ ERROR recursion limit reached
10     //~| HELP consider increasing the recursion limit
11 }
12 
main()13 fn main() {
14     a!(A, A, A, A, A);
15     a!(A, A, A, A, A, A, A, A, A, A, A);
16 }
17