☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
execute
/
torture
/
macros24.rs
☽
☼
gcc/testsuite/rust/execute/torture/macros24.rs
code
plain
raw
1
macro_rules! repeat {
2
( $( $i:literal ),* ; $( $j:literal ),* ) => (( $( ($i,$j) ),* ))
3
}
4
5
fn main() -> i32 {
6
let t = repeat!(1, 1; 2, 2);
7
8
t.0 .0 + t.0 .1 + t.1 .0 + t.1 .1 - 6
9
}