1 // Checks that inlining threshold can be controlled with
2 // inline-mir-threshold and inline-hint-threshold options.
4 // compile-flags: -Zinline-mir-threshold=90
5 // compile-flags: -Zinline-mir-hint-threshold=50
7 // EMIT_MIR inline_options.main.Inline.after.mir
13 // Cost is approximately 3 * 25 + 5 = 80.
15 pub fn not_inlined() { g(); g(); g(); }
16 pub fn inlined<T>() { g(); g(); g(); }