Debian Codegraph @

gcc/testsuite/rust/execute/torture/macros24.rs

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 }