☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
macros
/
mbe
/
macro6.rs
☽
☼
gcc/testsuite/rust/compile/macros/mbe/macro6.rs
code
plain
raw
1
macro_rules! zero_or_one {
2
($($a:literal)?) => {
3
1 + 2;
4
}
5
}
6
7
fn main() {
8
zero_or_one!();
9
zero_or_one!(14);
10
zero_or_one!(125 12 "gcc"); // { dg-error "Failed to match any rule within macro" }
11
}