duplicate_struct_variable.adl
1 2 program test.alpha { 3 // test 1: adjacent duplicate - no gap marker 4 struct Bar { 5 x: u32, 6 x: u32, 7 } 8 9 // test 2: duplicate with gap marker - "..." 10 struct Person { 11 name: field, 12 age: u8, 13 city: field, 14 name: field, 15 } 16 17 // test 3: multiple different duplicates 18 struct Data { 19 id: u32, 20 val: u64, 21 id: u32, 22 val: u64, 23 } 24 25 // test 4: large gap between duplicates 26 struct Config { 27 host: field, 28 port: u16, 29 protocol: field, 30 timeout: u32, 31 retry_count: u8, 32 max_connections: u32, 33 buffer_size: u64, 34 compression: bool, 35 encryption: bool, 36 host: field, 37 } 38 39 function main(zz: bool) -> bool { 40 return true; 41 } 42 }