]> git.proxmox.com Git - rustc.git/blame - src/test/ui/lint/cli-lint-override.rs
New upstream version 1.64.0+dfsg1
[rustc.git] / src / test / ui / lint / cli-lint-override.rs
CommitLineData
136023e0 1// Tests that subsequent lints specified via the command line override
5e7ed085 2// each other, except for ForceWarn and Forbid, which cannot be overridden.
136023e0
XL
3//
4// revisions: warn_deny forbid_warn force_warn_deny
5//
6//[warn_deny] compile-flags: --warn missing_abi --deny missing_abi
7//[forbid_warn] compile-flags: --warn missing_abi --forbid missing_abi
94222f64 8//[force_warn_deny] compile-flags: --force-warn missing_abi --allow missing_abi
136023e0
XL
9//[force_warn_deny] check-pass
10
11
12extern fn foo() {}
13//[warn_deny]~^ ERROR extern declarations without an explicit ABI are deprecated
14//[forbid_warn]~^^ ERROR extern declarations without an explicit ABI are deprecated
15//[force_warn_deny]~^^^ WARN extern declarations without an explicit ABI are deprecated
16
17fn main() {}