]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/exit2.rs
Add 'compiler/rustc_codegen_gcc/' from commit 'afae271d5d3719eeb92c18bc004bb6d1965a5f3f'
[rust.git] / src / tools / clippy / tests / ui / exit2.rs
1 #[warn(clippy::exit)]
2
3 fn also_not_main() {
4     std::process::exit(3);
5 }
6
7 fn main() {
8     if true {
9         std::process::exit(2);
10     };
11     also_not_main();
12     std::process::exit(1);
13 }