Debian Codegraph @

gcc/testsuite/rust/compile/macros/mbe/macro7.rs

raw
1 fn f() {}
2
3 macro_rules! one_or_more {
4 ($($a:literal)+) => {
5 f();
6 };
7 }
8
9 fn main() {
10 one_or_more!(1 1 1 1 1 1 1 1 1 1 1 "rust" 'c');
11 one_or_more!(1);
12 one_or_more!(); // { dg-error "Failed to match any rule within macro" }
13 }