☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
macros
/
mbe
/
macro17.rs
☽
☼
gcc/testsuite/rust/compile/macros/mbe/macro17.rs
code
plain
raw
1
macro_rules! rep {
2
($a:literal) => { $a };
3
($a:literal $(, $e:literal)*) => {
4
$a + rep!(0 $(, $e)*) // { dg-error "reached recursion limit" }
5
}
6
}
7
8
fn main() -> i32 {
9
rep!(1, 2)
10
}