]>
git.proxmox.com Git - rustc.git/blob - tests/run-coverage/dead_code.rs
1 #![allow(dead_code, unused_assignments, unused_variables)]
3 pub fn unused_pub_fn_not_in_library() {
4 // Initialize test constants in a way that cannot be determined at compile time, to ensure
5 // rustc and LLVM cannot optimize out statements (or coverage counters) downstream from
6 // dependent conditions.
7 let is_true
= std
::env
::args().len() == 1;
16 // Initialize test constants in a way that cannot be determined at compile time, to ensure
17 // rustc and LLVM cannot optimize out statements (or coverage counters) downstream from
18 // dependent conditions.
19 let is_true
= std
::env
::args().len() == 1;
21 let mut countdown
= 0;
28 // Initialize test constants in a way that cannot be determined at compile time, to ensure
29 // rustc and LLVM cannot optimize out statements (or coverage counters) downstream from
30 // dependent conditions.
31 let is_true
= std
::env
::args().len() == 1;
33 let mut countdown
= 0;