]> git.lizzy.rs Git - rust.git/blob - tests/run-make-fulldeps/pgo-branch-weights/main.rs
Rollup merge of #106715 - BoxyUwU:new_solver_triagebot, r=lcnr
[rust.git] / tests / run-make-fulldeps / pgo-branch-weights / main.rs
1 extern crate interesting;
2
3 fn main() {
4     let arg = std::env::args().skip(1).next().unwrap();
5
6     for c in arg.chars() {
7         if c == '2' {
8             interesting::function_called_twice(c);
9         } else {
10             interesting::function_called_42_times(c);
11         }
12
13         if c == '0' {
14             interesting::function_called_never(c);
15         }
16     }
17 }