about summary refs log tree commit diff
path: root/tests/ui/deprecation/deprecated_inline_threshold.rs
blob: 284a6d6798e455255245fb44e9ceb468df82679b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//@ revisions: good_val bad_val no_val
//
//@[good_val] compile-flags: -Cinline-threshold=666
//@[good_val] check-pass
//@[bad_val] compile-flags: -Cinline-threshold=asd
//@[no_val] compile-flags: -Cinline-threshold

fn main() {}

//[good_val]~? WARN `-C inline-threshold`: this option is deprecated and does nothing
//[bad_val]~? WARN `-C inline-threshold`: this option is deprecated and does nothing
//[bad_val]~? ERROR incorrect value `asd` for codegen option `inline-threshold`
//[no_val]~? WARN `-C inline-threshold`: this option is deprecated and does nothing
//[no_val]~? ERROR codegen option `inline-threshold` requires a number