]> git.proxmox.com Git - rustc.git/blob - tests/run-make-fulldeps/pgo-branch-weights/main.rs
New upstream version 1.69.0+dfsg1
[rustc.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 }