☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
macros
/
mbe
/
macro7.rs
☽
☼
gcc/testsuite/rust/compile/macros/mbe/macro7.rs
code
plain
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
}